mirror of
https://github.com/luzifer-docker/code-server.git
synced 2024-12-20 13:11:17 +00:00
24 lines
565 B
Text
24 lines
565 B
Text
|
FROM luzifer/archlinux
|
||
|
|
||
|
ARG CODE_SERVER_VERSION=3.10.2
|
||
|
ARG DUMB_INIT_VERSION=1.2.5
|
||
|
ARG FIXUID_VERSION=0.5
|
||
|
|
||
|
COPY build.sh /usr/local/bin/build.sh
|
||
|
RUN set -ex \
|
||
|
&& bash /usr/local/bin/build.sh
|
||
|
|
||
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||
|
|
||
|
EXPOSE 8080
|
||
|
|
||
|
# This way, if someone sets $DOCKER_USER, docker-exec will still work as
|
||
|
# the uid will remain the same. note: only relevant if -u isn't passed to
|
||
|
# docker-run.
|
||
|
USER 1000
|
||
|
ENV USER=coder
|
||
|
WORKDIR /home/coder
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||
|
CMD ["--auth", "none", "--bind-addr", "0.0.0.0:8080", "."]
|