Browse Source

fix: add g++ dependency in dockerfile

Nicolas Meienberger 2 years ago
parent
commit
09ebeb02bd
2 changed files with 2 additions and 0 deletions
  1. 1 0
      Dockerfile
  2. 1 0
      Dockerfile.dev

+ 1 - 0
Dockerfile

@@ -23,6 +23,7 @@ FROM node:18-alpine3.16 as app
 
 WORKDIR /
 
+RUN apk --no-cache add g++
 # Install dependencies
 RUN npm install node-gyp -g
 

+ 1 - 0
Dockerfile.dev

@@ -2,6 +2,7 @@ FROM node:18-alpine3.16
 
 WORKDIR /
 
+RUN apk --no-cache add g++
 RUN npm install node-gyp -g
 
 WORKDIR /api