Browse Source

fix: add g++ dependency in dockerfile

Nicolas Meienberger 2 năm trước cách đây
mục cha
commit
09ebeb02bd
2 tập tin đã thay đổi với 2 bổ sung0 xóa
  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