adminFront/Dockerfile

20 lines
590 B
Docker
Raw Normal View History

2025-02-10 14:03:52 +00:00
FROM gitea.pena/penadevops/container-images/node-compose:main as build
2023-02-21 19:55:00 +00:00
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
2023-10-20 21:18:36 +00:00
COPY . .
2023-02-21 19:55:00 +00:00
2025-02-10 14:03:52 +00:00
RUN apk add bind-tools
RUN dig gitea.pena
2023-02-21 19:55:00 +00:00
RUN yarn install --ignore-scripts --non-interactive --frozen-lockfile && yarn cache clean
2025-01-26 13:06:33 +00:00
RUN apk add cpulimit
RUN cpulimit -l 20 yarn build
2023-02-21 19:55:00 +00:00
2025-01-12 09:22:59 +00:00
FROM gitea.pena/penadevops/container-images/nginx:main as result
2023-02-21 19:55:00 +00:00
WORKDIR /usr/share/nginx/html
COPY --from=build /usr/app/build/ /usr/share/nginx/html
COPY admin.conf /etc/nginx/conf.d/default.conf
2024-01-21 18:47:54 +00:00
COPY cert.pem /etc/nginx/cert.pem
COPY key.pem /etc/nginx/key.pem