From 5be72b55abd6053ebd0efe6f14524f5d12ee6029 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 8 Feb 2020 10:34:42 -0600 Subject: [PATCH] add node-gyp deps in node:alpine image --- web/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/Dockerfile b/web/Dockerfile index b44eacf7c..1dfb8ad27 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -8,6 +8,9 @@ COPY nginx/conf.d /etc/nginx/conf.d # init build FROM node:alpine as build +# https://github.com/nodejs/docker-node/blob/master/docs/BestPractices.md#node-gyp-alpine +RUN apk add --no-cache python make g++ + # install WORKDIR /usr/src/app/ COPY package*.json ./