aboutsummaryrefslogtreecommitdiff
path: root/docker/arch-code-server/Dockerfile
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-10-31 20:14:32 +0800
committercrupest <crupest@outlook.com>2022-10-31 20:14:32 +0800
commit16bc28ac505aabd9da7dce085054a86db7904d6e (patch)
tree373c34c6cc699ddde1d09e5755666b1ae260c27c /docker/arch-code-server/Dockerfile
parentefdfc6feb5744d8ad4bd07e35fa8d662925e3e96 (diff)
downloadcrupest-16bc28ac505aabd9da7dce085054a86db7904d6e.tar.gz
crupest-16bc28ac505aabd9da7dce085054a86db7904d6e.tar.bz2
crupest-16bc28ac505aabd9da7dce085054a86db7904d6e.zip
...
Diffstat (limited to 'docker/arch-code-server/Dockerfile')
-rw-r--r--docker/arch-code-server/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/docker/arch-code-server/Dockerfile b/docker/arch-code-server/Dockerfile
new file mode 100644
index 0000000..180cb7e
--- /dev/null
+++ b/docker/arch-code-server/Dockerfile
@@ -0,0 +1,25 @@
+FROM archlinux: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.tuna.tsinghua.edu.cn/archlinux/\$repo/os/\$arch"
+
+ADD ./archlinux-setup.bash ./archlinux-setup-user.bash ./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" ]
+EXPOSE 8080
+
+ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml"
+ENTRYPOINT [ "code-sever", "--bind-addr", "0.0.0.0:8080" ]