Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit cfa4d19

Browse files
committed
Workaround for arm64 with pre-built binaries for nodejs
1 parent 6ea42ff commit cfa4d19

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/npm/Dockerfile.template

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG ref=main
44

55
FROM ghcr.io/nicholasdille/docker-setup/nodejs:${ref} AS nodejs
66

7-
FROM ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
7+
FROM --platform=amd64 ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
88
COPY --link --from=nodejs / /
99
WORKDIR /tmp/node
1010
ARG name
@@ -20,4 +20,7 @@ COPY <<EOF ${prefix}${target}/etc/npmrc
2020
globalconfig=/etc/npmrc
2121
globalignorefile=/etc/npmignore
2222
prefix=/usr/local
23-
EOF
23+
EOF
24+
25+
FROM --platform=amd64 ghcr.io/nicholasdille/docker-setup/base:${ref} AS prepare
26+
COPY <<EOF ${prefix}${target}/var/cache/docker-setup/npm-is-included-in-prebuilt-binaries-of-nodejs

0 commit comments

Comments
 (0)