From 16526db1c6c7d7e1734753d7caf7a23a9e59d680 Mon Sep 17 00:00:00 2001 From: panyuyi Date: Thu, 13 Feb 2025 17:08:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B7=BB=E5=8A=A0yarn=E5=BF=BD=E7=95=A5?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/deploy/Dockerfile b/deploy/Dockerfile index c142182..352fa1a 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -6,15 +6,16 @@ COPY . /root # yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ && \ # source /opt/rh/devtoolset-8/enable && \ RUN yarn config set strict-peer-dependencies false && \ -yarn config set sass_binary_site https://npmmirror.com/mirrors/node-sass && \ -yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \ -yarn cache clean && \ -yarn install --verbose && \ -yarn run build + yarn config set ignore-engines true && \ + yarn config set sass_binary_site https://npmmirror.com/mirrors/node-sass && \ + yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \ + yarn cache clean && \ + yarn install --verbose && \ + yarn run build # Second stage: minimal runtime environment FROM registry.datameta.com:8180/public/nginx:1.25-alpine - + COPY --from=builder /root/dist /usr/share/nginx/html WORKDIR /