diff options
author | crupest <crupest@outlook.com> | 2022-11-29 12:24:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-29 12:24:47 +0800 |
commit | d171df1c5f71509c172fef4f8508e66c922554c9 (patch) | |
tree | cc403ee5984c3387b4c5d5628f6cc631778213b0 /docker/arch-code-server/Dockerfile | |
parent | 4486ef93f49a55cb359bc9967b13cf1588633059 (diff) | |
download | crupest-d171df1c5f71509c172fef4f8508e66c922554c9.tar.gz crupest-d171df1c5f71509c172fef4f8508e66c922554c9.tar.bz2 crupest-d171df1c5f71509c172fef4f8508e66c922554c9.zip |
Move to alpine. Fix #6.
Diffstat (limited to 'docker/arch-code-server/Dockerfile')
-rw-r--r-- | docker/arch-code-server/Dockerfile | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/docker/arch-code-server/Dockerfile b/docker/arch-code-server/Dockerfile index 6471fac..fe810cd 100644 --- a/docker/arch-code-server/Dockerfile +++ b/docker/arch-code-server/Dockerfile @@ -1,25 +1,8 @@ -FROM archlinux:latest +FROM alpine:latest -ARG CRUPEST_USER -ARG CRUPEST_GROUP -ARG CRUPEST_UID=1000 -ARG CRUPEST_GID=1000 -ARG CRUPEST_PACKAGES="" -ARG CRUPEST_AUR_PACKAGES="" -ARG USE_CHINA_MIRROR="false" -ARG CHINA_MIRROR_URL="https://mirrors.ustc.edu.cn/archlinux/\$repo/os/\$arch" - -ADD ./archlinux-setup.bash ./archlinux-setup-user.bash ./china-magic-for-pkgbuild.py ./restore-pacman-conf.py /tmp/ - -ENV CRUPEST_IN_DOCKER="true" -WORKDIR /tmp -RUN /tmp/archlinux-setup.bash -USER ${CRUPEST_UID}:${CRUPEST_GID} -WORKDIR /home/${CRUPEST_USER} -RUN /tmp/archlinux-setup-user.bash - -VOLUME [ "/data" ] +RUN apk add --no-cache alpine-sdk bash libstdc++ libc6-compat && npm config set python python3 && npm install --global code-server --unsafe-perm +WORKDIR /root EXPOSE 8080 - +VOLUME [ "/data" ] ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml" ENTRYPOINT [ "code-server", "--bind-addr", "0.0.0.0:8080" ] |