FROM registry.datameta.com:8180/public/builder-nodejs:v3.2.0-podman-16.14.2 as builder WORKDIR /root COPY . /root # RUN yum install -y centos-release-scl && \ # 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 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 / COPY deploy/nginx.conf.tmpl nginx.conf.tmpl COPY /deploy/entryPoint.sh entryPoint.sh RUN chmod +x entryPoint.sh # expose port EXPOSE 80 ENTRYPOINT ["sh","/entryPoint.sh"]