1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

made build based on template

This commit is contained in:
Fedor Katurov 2021-09-30 12:02:09 +07:00
parent 3164cd9753
commit 952c2a3f82
2 changed files with 4 additions and 11 deletions

View file

@ -2,10 +2,4 @@ kind: template
load: registry.yaml load: registry.yaml
data: data:
dockerfile: docker/www/Dockerfile dockerfile: docker/www/Dockerfile
branches:
- master
- develop
when:
branch:
- master
- develop

View file

@ -1,13 +1,12 @@
# stage1 as builder
FROM node:dubnium-alpine as builder FROM node:dubnium-alpine as builder
COPY package.json yarn.lock ./ COPY package.json yarn.lock ./
#RUN yarn RUN yarn
COPY . . COPY . .
#RUN yarn build RUN yarn build
FROM nginx:alpine FROM nginx:alpine
COPY docker/www/nginx.conf /etc/nginx/nginx.conf COPY docker/www/nginx.conf /etc/nginx/nginx.conf
RUN rm -rf /usr/share/nginx/html/* RUN rm -rf /usr/share/nginx/html/*
#COPY --from=builder /build /usr/share/nginx/html COPY --from=builder /build /usr/share/nginx/html
EXPOSE ${EXPOSE} 80 EXPOSE ${EXPOSE} 80
ENTRYPOINT ["nginx", "-g", "daemon off;"] ENTRYPOINT ["nginx", "-g", "daemon off;"]