We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cdb900a + cdc5b55 commit ab8f8a0Copy full SHA for ab8f8a0
Dockerfile
@@ -39,13 +39,12 @@ RUN adduser --gecos '' --disabled-password coder && \
39
40
USER coder
41
# We create first instead of just using WORKDIR as when WORKDIR creates, the user is root.
42
-RUN mkdir -p /home/coder/project && \
43
- chmod g+rw /home/coder/project;
+RUN mkdir -p /home/coder/project
44
45
WORKDIR /home/coder/project
46
47
# This assures we have a volume mounted even if the user forgot to do bind mount.
48
-# XXX: Workaround for GH-459 and for OpenShift compatibility.
+# So that they do not lose their data if they delete the container.
49
VOLUME [ "/home/coder/project" ]
50
51
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
0 commit comments