File tree Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Expand file tree Collapse file tree 2 files changed +25
-13
lines changed Original file line number Diff line number Diff line change 1- FROM alpine:3.19
1+ FROM alpine:3.21
22
33ARG GID=1000
44ARG UID=1000
@@ -10,7 +10,6 @@ RUN apk add --no-cache \
1010 libstdc++ \
1111 && apk add --no-cache --virtual .build-deps \
1212 bash \
13- binutils-gold \
1413 curl \
1514 g++ \
1615 gcc \
Original file line number Diff line number Diff line change @@ -10,7 +10,20 @@ commit="$5"
1010fullversion=" $6 "
1111source_url=" $7 "
1212source_urlbase=" $8 "
13- config_flags=
13+ config_flags=" "
14+ make_flags=" "
15+
16+ alpineArch=" $( apk --print-arch) "
17+ case " ${alpineArch##* -} " in
18+ riscv64)
19+ config_flags+=" --openssl-no-asm"
20+ ;;
21+ loongarch64)
22+ # v18.x need, https://github.com/nodejs/node/blob/v18.x/Makefile#L939
23+ make_flags+=" DESTCPU=loong64 ARCH=loong64"
24+ config_flags+=" --openssl-no-asm"
25+ ;;
26+ esac
1427
1528cd /home/node
1629
@@ -20,15 +33,15 @@ cd "node-${fullversion}"
2033export CC=" ccache gcc"
2134export CXX=" ccache g++"
2235
23- make -j $( getconf _NPROCESSORS_ONLN ) binary V= \
24- DESTCPU= " x64 " \
25- ARCH= " x64 " \
26- VARIATION= " musl " \
27- DISTTYPE= " $disttype " \
28- CUSTOMTAG= " $customtag " \
29- DATESTRING= " $datestring " \
30- COMMIT= " $commit " \
31- RELEASE_URLBASE= " $release_urlbase " \
32- CONFIG_FLAGS= " $config_flags "
36+ make_flags+= " \
37+ VARIATION=musl \
38+ DISTTYPE= $disttype \
39+ CUSTOMTAG= $customtag \
40+ DATESTRING= $datestring \
41+ COMMIT= $commit \
42+ RELEASE_URLBASE= $release_urlbase \
43+ CONFIG_FLAGS= $config_flags "
44+
45+ make -j $( getconf _NPROCESSORS_ONLN ) binary V= $make_flags
3346
3447mv node-* .tar.? z /out/
You can’t perform that action at this time.
0 commit comments