mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +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
|
load: registry.yaml
|
||||||
data:
|
data:
|
||||||
dockerfile: docker/www/Dockerfile
|
dockerfile: docker/www/Dockerfile
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
|
|
|
@ -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;"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue