build: add global node-gyp for arm (#3676)

This commit is contained in:
Ryan Cohen
2023-11-06 18:56:57 +09:00
committed by GitHub
parent 89287af096
commit e297d25603

View File

@@ -8,8 +8,9 @@ ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
RUN \
case "${TARGETPLATFORM}" in \
'linux/arm64' | 'linux/arm/v7') \
apk add --no-cache python3 make g++ && \
ln -s /usr/bin/python3 /usr/bin/python \
apk update && \
apk add --no-cache python3 make g++ gcc libc6-compat bash && \
yarn global add node-gyp \
;; \
esac