diff options
author | crupest <crupest@outlook.com> | 2022-11-29 14:07:54 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-11-29 14:07:54 +0800 |
commit | fee9ad4567714d34286ac62e34f6b8586a29e567 (patch) | |
tree | b789aa52d499e8b3941a3988a68e84e134c7a229 | |
parent | b3c19d7442e398ca7806a43056ecd511b2d07ed9 (diff) | |
download | crupest-fee9ad4567714d34286ac62e34f6b8586a29e567.tar.gz crupest-fee9ad4567714d34286ac62e34f6b8586a29e567.tar.bz2 crupest-fee9ad4567714d34286ac62e34f6b8586a29e567.zip |
Try to fix code-server. v3.0
-rw-r--r-- | docker/code-server/Dockerfile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docker/code-server/Dockerfile b/docker/code-server/Dockerfile index fe8785d..40e0231 100644 --- a/docker/code-server/Dockerfile +++ b/docker/code-server/Dockerfile @@ -1,9 +1,9 @@ -FROM ubuntu:latest +FROM node:16-alpine +RUN apk add --no-cache alpine-sdk bash libstdc++ libc6-compat && node --version +RUN npm config set python python3 && npm install --global code-server --unsafe-perm ENV CODE_SERVER_CONFIG="/data/code-server-config.yaml" WORKDIR /root -COPY install-code-server.bash /install-code-server.bash -RUN /install-code-server.bash EXPOSE 8080 VOLUME [ "/data" ] ENTRYPOINT [ "code-server", "--bind-addr", "0.0.0.0:8080" ] |