|
|
@ -1,19 +1,16 @@ |
|
|
|
FROM registry.datameta.com:8180/public/node:17.9.1-alpine3.15 as builder |
|
|
|
FROM registry.datameta.com:8180/public/builder-nodejs:v3.2.0-podman-16.14.2 as builder |
|
|
|
WORKDIR /root |
|
|
|
COPY . /root |
|
|
|
# RUN npm |
|
|
|
ENV NODE_OPTIONS '--openssl-legacy-provider --max-old-space-size=8000' |
|
|
|
|
|
|
|
RUN set -x \ |
|
|
|
&& sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ |
|
|
|
&& apk --no-cache add python2 make g++ && npm config set strict-peer-dependencies=false && \ |
|
|
|
npm install --ignore-optional --registry=http://172.16.32.57:8931/repository/npm-group/ --verbose --legacy-peer-deps && \ |
|
|
|
npm run build |
|
|
|
|
|
|
|
# RUN yarn config set strict-peer-dependencies false && \ |
|
|
|
# yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \ |
|
|
|
# yarn && \ |
|
|
|
# yarn run build:pro |
|
|
|
|
|
|
|
RUN yum install -y centos-release-scl && \ |
|
|
|
yum install -y devtoolset-8-gcc devtoolset-8-gcc-c++ && \ |
|
|
|
source /opt/rh/devtoolset-8/enable && \ |
|
|
|
yarn config set strict-peer-dependencies false && \ |
|
|
|
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass && \ |
|
|
|
yarn config set registry http://172.16.32.57:8931/repository/npm-group/ && \ |
|
|
|
npm install core-js@3 --save && \ |
|
|
|
yarn && \ |
|
|
|
yarn run build |
|
|
|
|
|
|
|
# Second stage: minimal runtime environment |
|
|
|
FROM registry.datameta.com:8180/public/nginx:1.25-alpine |
|
|
|