Archived
1
0

docker: Allow passing $DOCKER_USER to set the username in the container

Needs to be reflected in the documentation and the dockerhub description now.

Closes #881
This commit is contained in:
Anmol Sethi
2020-08-25 15:38:12 -04:00
parent 221e95ee89
commit 4c4a7413a1
2 changed files with 20 additions and 1 deletions

View File

@ -35,9 +35,10 @@ RUN ARCH="$(dpkg --print-architecture)" && \
printf "user: coder\ngroup: coder\n" > /etc/fixuid/config.yml
COPY release-packages/code-server*.deb /tmp/
COPY ci/release-image/entrypoint.sh /usr/bin/entrypoint.sh
RUN dpkg -i /tmp/code-server*$(dpkg --print-architecture).deb && rm /tmp/code-server*.deb
EXPOSE 8080
USER coder
WORKDIR /home/coder
ENTRYPOINT ["dumb-init", "fixuid", "-q", "/usr/bin/code-server", "--bind-addr", "0.0.0.0:8080", "."]
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "."]