From 1471f1c8680700cfc939672fadf2bc8e3e909470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E5=89=91=E6=88=90?= Date: Fri, 10 Feb 2023 13:26:05 +0800 Subject: [PATCH] fix: --ignore-engines --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 890ff8d..7b3fd34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV YAPI_VERSION=1.12.0 # 编译脚本 WORKDIR /yapi/scripts COPY . . -RUN yarn && yarn build +RUN yarn --ignore-engines && yarn build WORKDIR /yapi/vendors @@ -29,7 +29,7 @@ RUN cp /yapi/scripts/start.js ./start.js RUN node /yapi/scripts/prepare.js $(pwd) # 安装依赖 -RUN yarn +RUN yarn --ignore-engines # 清理文件 RUN node /yapi/scripts/clean.js $(pwd)