File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ RUN ARCH="$(dpkg --print-architecture)" && \
4242COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
4343RUN --mount=from=packages,src=/tmp,dst=/tmp/packages dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb
4444
45+ # Allow users to have scripts run on container startup to prepare workspace.
46+ # https://github.com/coder/code-server/issues/5177
47+ ENV ENTRYPOINTD=${HOME}/entrypoint.d
48+
4549EXPOSE 8080
4650# This way, if someone sets $DOCKER_USER, docker-exec will still work as
4751# the uid will remain the same. note: only relevant if -u isn't passed to
Original file line number Diff line number Diff line change @@ -18,4 +18,10 @@ if [ "${DOCKER_USER-}" ]; then
1818 fi
1919fi
2020
21+ # Allow users to have scripts run on container startup to prepare workspace.
22+ # https://github.com/coder/code-server/issues/5177
23+ if [ -d " ${ENTRYPOINTD} " ]; then
24+ find " ${ENTRYPOINTD} " -type f -executable -print -exec {} \;
25+ fi
26+
2127exec dumb-init /usr/bin/code-server " $@ "
You can’t perform that action at this time.
0 commit comments