add node-gyp deps in node:alpine image

This commit is contained in:
Collin M. Barrett 2020-02-08 10:34:42 -06:00
parent 4d80a79940
commit 5be72b55ab

View file

@ -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 ./