Skip to content

Commit a4979fe

Browse files
authored
Merge pull request #35 from linuxserver/lockfile
update yarn instructions
2 parents ad8112c + 4742947 commit a4979fe

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ RUN \
4444
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47-
yarn --production global add code-server@"$CODE_VERSION" && \
47+
yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4848
yarn cache clean && \
49-
ln -s /node_modules/.bin/code-server /usr/bin/code-server && \
5049
echo "**** clean up ****" && \
5150
apt-get purge --auto-remove -y \
5251
build-essential \

Dockerfile.aarch64

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ RUN \
4444
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47-
yarn --production global add code-server@"$CODE_VERSION" && \
47+
yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4848
yarn cache clean && \
49-
ln -s /node_modules/.bin/code-server /usr/bin/code-server && \
5049
echo "**** clean up ****" && \
5150
apt-get purge --auto-remove -y \
5251
build-essential \

Dockerfile.armhf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,8 @@ RUN \
4444
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
4545
fi && \
4646
CODE_VERSION=$(echo "$CODE_RELEASE" | awk '{print substr($1,2); }') && \
47-
yarn --production global add code-server@"$CODE_VERSION" && \
47+
yarn --production --frozen-lockfile global add code-server@"$CODE_VERSION" && \
4848
yarn cache clean && \
49-
ln -s /node_modules/.bin/code-server /usr/bin/code-server && \
5049
echo "**** clean up ****" && \
5150
apt-get purge --auto-remove -y \
5251
build-essential \

root/etc/services.d/code-server/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515

1616
exec \
1717
s6-setuidgid abc \
18-
/usr/bin/code-server \
18+
/usr/local/bin/code-server \
1919
--bind-addr 0.0.0.0:8443 \
2020
--user-data-dir /config/data \
2121
--extensions-dir /config/extensions \

0 commit comments

Comments
 (0)