2021-06-27 14:11:15 +00:00
|
|
|
FROM luzifer/archlinux
|
|
|
|
|
2024-11-06 22:48:02 +00:00
|
|
|
ARG CODE_SERVER_VERSION=4.95.1
|
2021-06-27 14:11:15 +00:00
|
|
|
ARG DUMB_INIT_VERSION=1.2.5
|
2022-03-07 18:52:26 +00:00
|
|
|
ARG FIXUID_VERSION=0.5.1
|
2021-06-27 14:11:15 +00:00
|
|
|
|
|
|
|
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"]
|
2023-08-04 13:32:02 +00:00
|
|
|
CMD ["--auth", "none", "--bind-addr", "0.0.0.0:8080", "--session-socket", "/tmp/code-server-ipc.sock", "."]
|