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:
parent
3b6bac1965
commit
d5b2ad14c0
@ -39,6 +39,7 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
|
|||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM node:12-alpine
|
FROM node:12-alpine
|
||||||
|
RUN apk add --no-cache --virtual .gyp python make g++
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN yarn install --production
|
RUN yarn install --production
|
||||||
|
Loading…
Reference in New Issue
Block a user