aboutsummaryrefslogtreecommitdiff
path: root/docker/arch-code-server/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'docker/arch-code-server/Dockerfile')
-rw-r--r--docker/arch-code-server/Dockerfile25
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" ]