Skip to content

Commit

Permalink
fix: gyp build errors fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
shawly committed Sep 21, 2021
1 parent ffa6077 commit 22db12e
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand All @@ -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
Expand Down

0 comments on commit 22db12e

Please sign in to comment.