You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
882 B
30 lines
882 B
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 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"]
|
|
|