From 54c3e5f06f775508413993266a453b01e7960875 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 17 Aug 2024 22:34:30 +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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index f8c41e09..ddf7f94a 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -2,9 +2,8 @@ FROM node:alpine WORKDIR /gva_web/ COPY . . -RUN npm config set registry https://registry.npm.taobao.org -RUN npm i -RUN npm run build +RUN yarn config set registry https://registry.npm.taobao.org +RUN yarn && yarn build FROM nginx:alpine LABEL MAINTAINER="SliverHorn@sliver_horn@qq.com"