Skip to content

Commit efe1ca8

Browse files
committed
entrypoint.sh is working for defaults docker run in README
1 parent 42bb4da commit efe1ca8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

+6-5
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@ ENV LC_ALL=en_US.UTF-8
3737
RUN adduser --gecos '' --disabled-password coder && \
3838
echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
3939

40+
COPY entrypoint.sh /home/coder/workdir/
41+
RUN chmod +x /home/coder/workdir/entrypoint.sh
42+
4043
USER coder
41-
COPY entrypoint.sh /home/coder/project/
4244

4345
# 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
4647

47-
WORKDIR /home/coder/project
48+
WORKDIR /home/coder/workdir
4849

4950
# This assures we have a volume mounted even if the user forgot to do bind mount.
5051
# XXX: Workaround for GH-459 and for OpenShift compatibility.
@@ -53,4 +54,4 @@ VOLUME [ "/home/coder/project" ]
5354
COPY --from=0 /src/packages/server/cli-linux-x64 /usr/local/bin/code-server
5455
EXPOSE 8443
5556

56-
ENTRYPOINT ["dumb-init", "entrypoint.sh", "code-server"]
57+
ENTRYPOINT ["dumb-init", "/home/coder/workdir/entrypoint.sh", "code-server"]

0 commit comments

Comments
 (0)