Skip to content

Commit 668a2a0

Browse files
fix: 修正 node 镜像构建错误
1 parent f2bd692 commit 668a2a0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

node/18/trixie-slim/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV NODE_VERSION 18.20.5
77

88
RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
99
&& case "${dpkgArch##*-}" in \
10-
loong64) ARCH='loong64';; \
10+
loong64) ARCH='loong64' OPENSSL_ARCH='linux*-loongarch64';; \
1111
*) echo "unsupported architecture"; exit 1 ;; \
1212
esac \
1313
&& set -ex \
@@ -47,6 +47,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
4747
| cut -d: -f1 \
4848
| sort -u \
4949
| xargs -r apt-mark manual \
50+
&& apt-mark manual debian-ports-archive-keyring \
5051
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
5152
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
5253
# smoke tests

node/20/trixie-slim/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV NODE_VERSION 20.18.1
77

88
RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
99
&& case "${dpkgArch##*-}" in \
10-
loong64) ARCH='loong64';; \
10+
loong64) ARCH='loong64' OPENSSL_ARCH='linux*-loongarch64';; \
1111
*) echo "unsupported architecture"; exit 1 ;; \
1212
esac \
1313
&& set -ex \
@@ -47,6 +47,7 @@ RUN ARCH= OPENSSL_ARCH= && dpkgArch="$(dpkg --print-architecture)" \
4747
| cut -d: -f1 \
4848
| sort -u \
4949
| xargs -r apt-mark manual \
50+
&& apt-mark manual debian-ports-archive-keyring \
5051
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
5152
&& ln -s /usr/local/bin/node /usr/local/bin/nodejs \
5253
# smoke tests

0 commit comments

Comments
 (0)