adminFront/Dockerfile
skeris abcdbe4225
All checks were successful
Deploy / CreateImage (push) Successful in 9m36s
Deploy / DeployService (push) Successful in 22s
try to fix autodeploy
2025-02-10 22:00:21 +03:00

20 lines
590 B
Docker

FROM gitea.pena/penadevops/container-images/node-compose:main as build
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
COPY . .
RUN apk add bind-tools
RUN dig gitea.pena
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
RUN apk add cpulimit
RUN cpulimit -l 20 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