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:
parent
3164cd9753
commit
952c2a3f82
2 changed files with 4 additions and 11 deletions
|
@ -2,10 +2,4 @@ kind: template
|
|||
load: registry.yaml
|
||||
data:
|
||||
dockerfile: docker/www/Dockerfile
|
||||
branches:
|
||||
- master
|
||||
- develop
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
- develop
|
||||
|
||||
|
|
|
@ -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;"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue