adminFront/Dockerfile
skeris b608dfc439
Some checks failed
Deploy / CreateImage (push) Failing after 28s
Deploy / DeployService (push) Has been skipped
deploy prod
2025-03-01 00:41:02 +03:00

17 lines
496 B
Docker

FROM gitea.pena/penadevops/container-images/node:main as build
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
COPY . .
RUN yarn install --verbose --ignore-scripts --non-interactive && yarn cache clean
RUN yarn build
FROM gitea.pena/penadevops/container-images/nginx:main as result
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/build/ /usr/share/nginx/html
COPY admin.conf /etc/nginx/conf.d/default.conf
COPY cert.pem /etc/nginx/cert.pem
COPY key.pem /etc/nginx/key.pem