更新 web/Dockerfile
Docker Deploy / build-and-deploy (push) Failing after 40s Details

This commit is contained in:
root 2024-08-17 22:34:30 +08:00
parent 68d783db24
commit 54c3e5f06f
1 changed files with 2 additions and 3 deletions

View File

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