diff options
author | crupest <crupest@outlook.com> | 2022-11-29 12:43:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-29 12:43:40 +0800 |
commit | 7897d842d12efcc6f08e374ebf830d41fc92bf7b (patch) | |
tree | b1c3522415a328596cfad2871873248a2a8d8b1f | |
parent | 0eb614117a56125a9e10384fa073afa702220c1b (diff) | |
download | crupest-7897d842d12efcc6f08e374ebf830d41fc92bf7b.tar.gz crupest-7897d842d12efcc6f08e374ebf830d41fc92bf7b.tar.bz2 crupest-7897d842d12efcc6f08e374ebf830d41fc92bf7b.zip |
Use ubuntu for code-server.
-rw-r--r-- | docker/arch-code-server/Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/arch-code-server/Dockerfile b/docker/arch-code-server/Dockerfile index 94fd76f..ff1ce98 100644 --- a/docker/arch-code-server/Dockerfile +++ b/docker/arch-code-server/Dockerfile @@ -1,8 +1,8 @@ -FROM node:alpine +FROM ubuntu:latest -RUN apk add --no-cache alpine-sdk bash libstdc++ libc6-compat && npm config set python python3 && npm install --global code-server --unsafe-perm +RUN curl -fsSL https://code-server.dev/install.sh | sh +ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml" 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" ] |