8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da420cd commit dfabc07Copy full SHA for dfabc07
Dockerfile
@@ -39,9 +39,15 @@ 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
+RUN mkdir -p /home/coder/project && \
43
+ chmod g+rw /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.
49
+VOLUME [ "/home/coder/project" ]
50
51
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
52
EXPOSE 8443
53
0 commit comments