浏览代码

fix(bash): add bcrypt support

gemercheung 3 年之前
父节点
当前提交
e6a58ff869
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -3,6 +3,10 @@ FROM node:gallium-alpine3.15
 WORKDIR /usr/src/app
 WORKDIR /usr/src/app
 
 
 COPY . .
 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 config set registry https://registry.npmmirror.com/
 RUN npm install -g npm
 RUN npm install -g npm