Browse Source

fix: 添加yarn忽略版本问题

sy-water-data-board-ui
panyuyi 2 months ago
parent
commit
16526db1c6
  1. 13
      deploy/Dockerfile

13
deploy/Dockerfile

@ -6,15 +6,16 @@ COPY . /root
# yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ && \ # yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ && \
# source /opt/rh/devtoolset-8/enable && \ # source /opt/rh/devtoolset-8/enable && \
RUN yarn config set strict-peer-dependencies false && \ RUN yarn config set strict-peer-dependencies false && \
yarn config set sass_binary_site https://npmmirror.com/mirrors/node-sass && \ yarn config set ignore-engines true && \
yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \ yarn config set sass_binary_site https://npmmirror.com/mirrors/node-sass && \
yarn cache clean && \ yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \
yarn install --verbose && \ yarn cache clean && \
yarn run build yarn install --verbose && \
yarn run build
# Second stage: minimal runtime environment # Second stage: minimal runtime environment
FROM registry.datameta.com:8180/public/nginx:1.25-alpine FROM registry.datameta.com:8180/public/nginx:1.25-alpine
COPY --from=builder /root/dist /usr/share/nginx/html COPY --from=builder /root/dist /usr/share/nginx/html
WORKDIR / WORKDIR /

Loading…
Cancel
Save