Services/Dockerfile
skeris 581e74a89b
All checks were successful
Deploy / CreateImage (push) Successful in 6m30s
Deploy / DeployService (push) Successful in 24s
deploy prod
2025-03-03 00:06:14 +03:00

18 lines
444 B
Docker

FROM gitea.pena/penadevops/container-images/node:main as build
RUN apk update && rm -rf /var/cache/apk/*
WORKDIR /usr/app
COPY package.json .
COPY tsconfig.json .
RUN npm install --force && yarn cache clean
COPY . .
RUN ls
RUN npm run 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