File tree 2 files changed +10
-0
lines changed
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)" && \
42
42
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
43
43
RUN --mount=from=packages,src=/tmp,dst=/tmp/packages dpkg -i /tmp/packages/code-server*$(dpkg --print-architecture).deb
44
44
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
+
45
49
EXPOSE 8080
46
50
# This way, if someone sets $DOCKER_USER, docker-exec will still work as
47
51
# 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
18
18
fi
19
19
fi
20
20
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
+
21
27
exec dumb-init /usr/bin/code-server " $@ "
You can’t perform that action at this time.
0 commit comments