mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
added ci-cd files
This commit is contained in:
parent
b60c97283d
commit
ef08fadeb1
5 changed files with 154 additions and 71 deletions
13
docker/www/Dockerfile
Normal file
13
docker/www/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
|||
# stage1 as builder
|
||||
FROM node:dubnium-alpine as builder
|
||||
COPY package.json yarn.lock ./
|
||||
RUN yarn
|
||||
COPY . .
|
||||
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
|
||||
EXPOSE ${EXPOSE} 80
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
Loading…
Add table
Add a link
Reference in a new issue