From 5474c0f88b7ebccc114aea1637f0c472f208cfd1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 18 Aug 2024 09:24:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20web/Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 7b1185ac..b11691d7 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -2,14 +2,13 @@ FROM node:16 WORKDIR /gva_web/ COPY . . -RUN yarn config set registry https://mirrors.huaweicloud.com/repository/npm/ -RUN yarn && 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://mirrors.huaweicloud.com/repository/npm/ +RUN npm config set registry https://mirrors.huaweicloud.com/repository/npm/ #RUN npm i cnpm -g -#RUN cnpm install -#RUN npm run build +RUN npm install +RUN npm run build FROM nginx:alpine