adminFront/Dockerfile
Nastya 5a71d24ab9
Some checks failed
Deploy / CreateImage (push) Failing after 1m13s
Deploy / DeployService (push) Has been skipped
plus getlist
2025-01-25 16:55:09 +03:00

17 lines
504 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 --ignore-scripts --non-interactive --frozen-lockfile && 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