add docker cache workflow
All checks were successful
Publish Docker (docker cache) / Push Docker image to Docker Hub (push) Successful in 1m51s
All checks were successful
Publish Docker (docker cache) / Push Docker image to Docker Hub (push) Successful in 1m51s
This commit is contained in:
parent
903beb16e0
commit
5df08b2496
6 changed files with 116 additions and 4 deletions
19
ci/docker-cache/Dockerfile
Normal file
19
ci/docker-cache/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM node:18 as builder
|
||||
|
||||
COPY package.json yarn.lock ./
|
||||
|
||||
RUN yarn install --immutable
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN yarn build
|
||||
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY ci/docker-cache/nginx.conf /etc/nginx/nginx.conf
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
COPY --from=builder /dist /usr/share/nginx/html
|
||||
|
||||
EXPOSE ${EXPOSE} 80
|
||||
|
||||
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
Loading…
Add table
Add a link
Reference in a new issue