From fc435fee1a8d0b79de16b73a2b63afb1fe011398 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 29 Nov 2022 13:35:22 +0800 Subject: Try to fix code-server. --- docker/code-server/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docker/code-server') 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" ] -- cgit v1.2.3