更新 web/Dockerfile
Docker Deploy / build-and-deploy (push) Has been cancelled Details

This commit is contained in:
root 2024-08-17 20:58:44 +08:00
parent a8a6c03794
commit 3aa85c50ca
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ FROM node:16
WORKDIR /gva_web/ WORKDIR /gva_web/
COPY . . COPY . .
RUN npm i && npm run build
RUN npm config set registry https://registry.npm.taobao.org && npm i && npm run build
FROM nginx:alpine FROM nginx:alpine
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com" LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"