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

This commit is contained in:
root 2024-08-17 22:53:12 +08:00
parent 5a5ae5ac05
commit 33f3b03cfa
1 changed files with 5 additions and 6 deletions

View File

@ -1,12 +1,11 @@
FROM node:18
FROM alpine:latest
WORKDIR /gva_web/
COPY . .
RUN npm config set registry https://registry.npm.taobao.org
RUN npm install -g yarn@latest
RUN yarn config set registry https://registry.npm.taobao.org
RUN yarn install
RUN yarn build
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add npm
RUN npm config set registry https://npm.aliyun.com
RUN npm install && npm run build
FROM nginx:alpine
LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"