2025-06-17 17:40:41 +00:00
|
|
|
FROM gitea.pena/penadevops/container-images/node:main as build
|
2023-02-21 19:55:00 +00:00
|
|
|
|
|
|
|
WORKDIR /usr/app
|
2023-10-20 21:18:36 +00:00
|
|
|
COPY . .
|
2023-02-21 19:55:00 +00:00
|
|
|
|
2025-03-09 22:30:49 +00:00
|
|
|
RUN npm install --force && yarn cache clean
|
2025-03-29 22:41:17 +00:00
|
|
|
RUN /usr/local/bin/psstat.sh "npm run build"
|
2023-02-21 19:55:00 +00:00
|
|
|
|
|
|
|
|
2025-02-28 21:41:02 +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
|