File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine:latest
2
2
ARG VERSION
3
- # One of x64 or arm64
3
+ # One of x64 or arm64 or ppc64le
4
4
ARG ARCH
5
5
# The sha256sum for the node source tarball
6
6
ARG SHA256SUM
@@ -15,7 +15,13 @@ RUN curl -O https://nodejs.org/dist/$VERSION/node-$VERSION.tar.gz
15
15
RUN echo "$SHA256SUM node-$VERSION.tar.gz" | sha256sum -c -
16
16
RUN tar -zxvf node-$VERSION.tar.gz
17
17
RUN cd node-$VERSION && ./configure --dest-cpu=$ARCH --fully-static && make -j$(nproc)
18
- RUN cp /build/node-$VERSION/LICENSE /out/LICENSE && cp /build/node-$VERSION/out/Release/node /out/bin/node
18
+ RUN cd node-$VERSION && \
19
+ case "$ARCH" in \
20
+ ppc64le) CPU=ppc64 ;; \
21
+ *) CPU="$ARCH" ;; \
22
+ esac && \
23
+ ./configure --dest-cpu=$CPU --fully-static && \
24
+ make -j$(nproc)
19
25
20
26
FROM scratch
21
27
COPY --from=0 /out/ /out
You can’t perform that action at this time.
0 commit comments