From 47429478a16c61e103cd684479a1bd23372a2180 Mon Sep 17 00:00:00 2001 From: aptalca Date: Wed, 2 Sep 2020 04:11:32 -0400 Subject: [PATCH] update yarn instructions --- Dockerfile | 3 +-- Dockerfile.aarch64 | 3 +-- Dockerfile.armhf | 3 +-- root/etc/services.d/code-server/run | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) 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 \