From 22db12e65d9d5acc646b930353a73e75095e6a9b Mon Sep 17 00:00:00 2001 From: shawly Date: Tue, 21 Sep 2021 18:50:48 +0200 Subject: [PATCH] fix: gyp build errors fixed --- Dockerfile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 23f3465..b3a4197 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,26 +14,14 @@ FROM node:${NODE_VERSION} as node-386 FROM node:${NODE_VERSION} as node-s390x -# fix for gyp missing python -RUN apk add --update --no-cache \ - python3 - FROM node:${NODE_VERSION} as node-armv6 FROM node:${NODE_VERSION} as node-armv7 FROM node:${NODE_VERSION} as node-arm64 -# fix for gyp missing python -RUN apk add --update --no-cache \ - python3 - FROM node:${NODE_VERSION} as node-ppc64le -# fix for gyp missing python -RUN apk add --update --no-cache \ - python3 - # Use Node 14 base image FROM node-${TARGETARCH:-amd64}${TARGETVARIANT} @@ -48,10 +36,13 @@ ADD . /app # Install the server dependencies RUN \ - apk add --update --no-cache \ + apk add --update --no-cache --virtual .gyp-fix \ + g++ \ + make \ python3 \ git && \ - npm install --production + npm install --production && \ + apk del .gyp-fix # Expose the node server port EXPOSE 10443