diff --git a/Dockerfile b/Dockerfile index c99f4d5..1ab1c38 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,9 +44,8 @@ RUN \ | awk '/tag_name/{print $4;exit}' FS='[""]'); \ fi && \ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \ - yarn --production global add code-server@"$CODE_VERSION" && \ + yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \ yarn cache clean && \ - ln -s /node_modules/.bin/code-server /usr/bin/code-server && \ echo "**** clean up ****" && \ apt-get purge --auto-remove -y \ build-essential \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 36f065c..df54467 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -44,9 +44,8 @@ RUN \ | awk '/tag_name/{print $4;exit}' FS='[""]'); \ fi && \ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \ - yarn --production global add code-server@"$CODE_VERSION" && \ + yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \ yarn cache clean && \ - ln -s /node_modules/.bin/code-server /usr/bin/code-server && \ echo "**** clean up ****" && \ apt-get purge --auto-remove -y \ build-essential \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index d44af02..b319e7f 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -44,9 +44,8 @@ RUN \ | awk '/tag_name/{print $4;exit}' FS='[""]'); \ fi && \ CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \ - yarn --production global add code-server@"$CODE_VERSION" && \ + yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \ yarn cache clean && \ - ln -s /node_modules/.bin/code-server /usr/bin/code-server && \ echo "**** clean up ****" && \ apt-get purge --auto-remove -y \ build-essential \ diff --git a/root/etc/services.d/code-server/run b/root/etc/services.d/code-server/run index 8d63daf..def2ad5 100644 --- a/root/etc/services.d/code-server/run +++ b/root/etc/services.d/code-server/run @@ -15,7 +15,7 @@ fi exec \ s6-setuidgid abc \ - /usr/bin/code-server \ + /usr/local/bin/code-server \ --bind-addr 0.0.0.0:8443 \ --user-data-dir /config/data \ --extensions-dir /config/extensions \