Add build requirements for node-gyp

This commit is contained in:
2022-05-14 08:12:20 +01:00
committed by GitHub
parent f42e10156e
commit 74e49ddde7

View File

@@ -7,7 +7,10 @@ COPY ["package.json", "./"]
COPY ["yarn.lock", "./"] COPY ["yarn.lock", "./"]
FROM base AS builder FROM base AS builder
RUN yarn install RUN apk add --no-cache --virtual .gyp python make g++ \
&& yarn install \
&& apk del .gyp
COPY ["src/", "./src"] COPY ["src/", "./src"]
RUN npm run Prod RUN npm run Prod