Explorar o código

fix(bash): add bcrypt support

gemercheung %!s(int64=3) %!d(string=hai) anos
pai
achega
e6a58ff869
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -3,6 +3,10 @@ FROM node:gallium-alpine3.15
 WORKDIR /usr/src/app
 
 COPY . .
+RUN apk add --no-cache make gcc g++ python && \
+    npm install && \
+    npm rebuild bcrypt --build-from-source && \
+    apk del make gcc g++ python
 
 RUN npm config set registry https://registry.npmmirror.com/
 RUN npm install -g npm