Skip to content

Commit cdc5b55

Browse files
committed
Remove chmod on project dir
See #471
1 parent 8a4da54 commit cdc5b55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,12 @@ RUN adduser --gecos '' --disabled-password coder && \
3939

4040
USER coder
4141
# 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;
42+
RUN mkdir -p /home/coder/project
4443

4544
WORKDIR /home/coder/project
4645

4746
# 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.
47+
# So that they do not lose their data if they delete the container.
4948
VOLUME [ "/home/coder/project" ]
5049

5150
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server

0 commit comments

Comments
 (0)