k3NGuru

Untitled

Oct 7th, 2022
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.07 KB | None | 0 0
  1. FROM registry.ahml.ru/msdp/ficb_front_service/node:14.18.1-alpine as build
  2. ARG NEXUS_PASS
  3. COPY . /app
  4. WORKDIR /app
  5. RUN echo "registry=https://nexus.ahml.ru/repository/npm-registry/" > .npmrc && \
  6.     echo "_auth=$(echo -n "nexus:$NEXUS_PASS" | base64)" >> .npmrc && \
  7.     echo "always-auth=true" >> .npmrc && \
  8.     npm install && npm run build
  9.  
  10. FROM registry.ahml.ru/msdp/ficb_front_service/nginx:1.20.2-alpine
  11. COPY etc/default.conf /etc/nginx/conf.d/default.conf
  12. COPY --from=build /app/dist/ /usr/share/nginx/html/
  13. #RUN find /usr/share/nginx/html/ -maxdepth 1 -type f -exec mv {} /usr/share/nginx/html/ficb_front_service/ \;
  14.  
  15. RUN echo "https://nexus:$NEXUS_PASS@nexus.ahml.ru/repository/alpine_3.16/"      >  /etc/apk/repositories \
  16.     && echo "https://nexus:$NEXUS_PASS@nexus.ahml.ru/repository/alpine_3.16_community/" >> /etc/apk/repositories \
  17.     && apk --update add tzdata -q \
  18.     && cp /usr/share/zoneinfo/Europe/Moscow /etc/localtime \
  19.     && echo "Europe/Moscow" > /etc/timezone \
  20.     && apk del tzdata \
  21.     && echo ' ' > /etc/apk/repositories \
  22.  
  23. #USER node
  24.  
Add Comment
Please, Sign In to add comment