Use alpine with dependencies that rely on node-gyp

Node-gyp throws an error for missing Python dependency

Details as provided here - https://github.com/nodejs/docker-node/issues/282
This commit is contained in:
Abhishek Pandey 2020-04-19 13:21:34 +05:30 committed by GitHub
parent 3b6bac1965
commit d5b2ad14c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,7 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
```dockerfile
FROM node:12-alpine
RUN apk add --no-cache --virtual .gyp python make g++
WORKDIR /app
COPY . .
RUN yarn install --production