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)