From 5e7d27e5ea070da566a0856a4b6bb5318c08a8a7 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Thu, 25 Aug 2022 16:53:35 +0300 Subject: [PATCH] attempt to fix node-gyp errors --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 15dbacf2d..1850ab64a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ # Install dependencies only when needed FROM node:16-alpine AS deps RUN apk add --no-cache libc6-compat +RUN apk add --no-cache --virtual .gyp python make g++ WORKDIR /app COPY package.json pnpm-lock.yaml* ./ RUN yarn global add pnpm @@ -11,8 +12,8 @@ FROM node:16-alpine AS builder WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . - RUN npm run build +RUN apk del .gyp # Production image, copy all the files and run next FROM node:16-alpine AS runner