Explorar el Código

feat: dockerfile 强制锁定文件

rindy hace 1 día
padre
commit
40045c9799
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      docker/frontend/Dockerfile

+ 1 - 1
docker/frontend/Dockerfile

@@ -9,7 +9,7 @@ COPY . .
 RUN npm install -g pnpm
 RUN pnpm config set registry https://registry.npmmirror.com
 RUN cd ${WORKDIR}
-RUN pnpm install
+RUN pnpm install --frozen-lockfile
 # 构建生产环境静态文件
 RUN  pnpm run build-web
 RUN pnpm run build-backend-html