diff options
Diffstat (limited to 'docker/code-server')
-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" ] |