1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36: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
data:
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
COPY package.json yarn.lock ./
#RUN yarn
RUN yarn
COPY . .
#RUN yarn build
RUN yarn build
FROM nginx:alpine
COPY docker/www/nginx.conf /etc/nginx/nginx.conf
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
ENTRYPOINT ["nginx", "-g", "daemon off;"]