diff options
author | crupest <crupest@outlook.com> | 2022-11-29 13:35:22 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-29 13:35:22 +0800 |
commit | fc435fee1a8d0b79de16b73a2b63afb1fe011398 (patch) | |
tree | 28df05d57de9b30386b6d6551cc01b3a8dacefba /docker | |
parent | e15843655faf6b02605d5c34940197efb4121a95 (diff) | |
download | crupest-fc435fee1a8d0b79de16b73a2b63afb1fe011398.tar.gz crupest-fc435fee1a8d0b79de16b73a2b63afb1fe011398.tar.bz2 crupest-fc435fee1a8d0b79de16b73a2b63afb1fe011398.zip |
Try to fix code-server.
Diffstat (limited to 'docker')
-rw-r--r-- | docker/code-server/Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docker/code-server/Dockerfile b/docker/code-server/Dockerfile index d7984d6..a5235c2 100644 --- a/docker/code-server/Dockerfile +++ b/docker/code-server/Dockerfile @@ -1,8 +1,9 @@ -FROM ubuntu:latest +FROM alpine:latest -RUN curl -fsSL https://code-server.dev/install.sh | sh +RUN apk add --no-cache alpine-sdk bash libstdc++ libc6-compat python3 curl nodejs npm && npm install -g n +RUN n 16 && npm config set python python3 && npm install --global code-server --unsafe-perm ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml" WORKDIR /root EXPOSE 8080 VOLUME [ "/data" ] -ENTRYPOINT [ "/usr/bin/code-server", "--bind-addr", "0.0.0.0:8080" ] +ENTRYPOINT [ "code-server", "--bind-addr", "0.0.0.0:8080" ] |