adminFront/Dockerfile
skeris 947431127a
Some checks failed
Deploy / CreateImage (push) Failing after 15m7s
Deploy / DeployService (push) Has been skipped
move uikit to gitea
2025-01-28 03:02:42 +03:00

18 lines
540 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 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