add docker cache workflow
All checks were successful
Publish Docker (docker cache) / Push Docker image to Docker Hub (push) Successful in 1m51s

This commit is contained in:
Fedor Katurov 2024-08-19 11:02:12 +07:00
parent 903beb16e0
commit 5df08b2496
6 changed files with 116 additions and 4 deletions

View 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;"]