Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM registry.ahml.ru/msdp/ficb_front_service/node:14.18.1-alpine as build
- ARG NEXUS_PASS
- COPY . /app
- WORKDIR /app
- RUN echo "registry=https://nexus.ahml.ru/repository/npm-registry/" > .npmrc && \
- echo "_auth=$(echo -n "nexus:$NEXUS_PASS" | base64)" >> .npmrc && \
- echo "always-auth=true" >> .npmrc && \
- npm install && npm run build
- FROM registry.ahml.ru/msdp/ficb_front_service/nginx:1.20.2-alpine
- COPY etc/default.conf /etc/nginx/conf.d/default.conf
- COPY --from=build /app/dist/ /usr/share/nginx/html/
- #RUN find /usr/share/nginx/html/ -maxdepth 1 -type f -exec mv {} /usr/share/nginx/html/ficb_front_service/ \;
- RUN echo "https://nexus:$NEXUS_PASS@nexus.ahml.ru/repository/alpine_3.16/" > /etc/apk/repositories \
- && echo "https://nexus:$NEXUS_PASS@nexus.ahml.ru/repository/alpine_3.16_community/" >> /etc/apk/repositories \
- && apk --update add tzdata -q \
- && cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
- && echo "Europe/Moscow" > /etc/timezone \
- && apk del tzdata \
- && echo ' ' > /etc/apk/repositories \
- #USER node
Add Comment
Please, Sign In to add comment