File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,15 @@ ENV LC_ALL=en_US.UTF-8
37
37
RUN adduser --gecos '' --disabled-password coder && \
38
38
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
39
39
40
+ COPY entrypoint.sh /home/coder/workdir/
41
+ RUN chmod +x /home/coder/workdir/entrypoint.sh
42
+
40
43
USER coder
41
- COPY entrypoint.sh /home/coder/project/
42
44
43
45
# We create first instead of just using WORKDIR as when WORKDIR creates, the user is root.
44
- RUN mkdir -p /home/coder/project && \
45
- chmod g+rw /home/coder/project;
46
+ RUN mkdir -p /home/coder/workdir
46
47
47
- WORKDIR /home/coder/project
48
+ WORKDIR /home/coder/workdir
48
49
49
50
# This assures we have a volume mounted even if the user forgot to do bind mount.
50
51
# XXX: Workaround for GH-459 and for OpenShift compatibility.
@@ -53,4 +54,4 @@ VOLUME [ "/home/coder/project" ]
53
54
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
54
55
EXPOSE 8443
55
56
56
- ENTRYPOINT ["dumb-init" , "entrypoint.sh" , "code-server" ]
57
+ ENTRYPOINT ["dumb-init" , "/home/coder/workdir/ entrypoint.sh" , "code-server" ]
You can’t perform that action at this time.
0 commit comments