front-hub/Containerfile
skeris c99efbe720
All checks were successful
Deploy / CreateImage (push) Successful in 6m5s
Deploy / DeployService (push) Successful in 22s
==
2025-07-18 17:03:20 +03:00

19 lines
934 B
Docker

FROM docker.io/library/node:lts-alpine as build
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
COPY . .
RUN npm install --force && yarn cache clean
RUN npm run build
RUN ls 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
RUN ls /usr/share/nginx/html
COPY fallback.js /usr/share/nginx/html/fallback.js
COPY hub.conf /etc/nginx/conf.d/default.conf