Added CICD
All checks were successful
Build Docker image / build (push) Successful in 3m20s
Build Docker image / deploy (push) Successful in 3s
Build Docker image / verify (push) Successful in 34s

This commit is contained in:
Roman Krček
2025-07-18 09:45:09 +02:00
parent e8dcb700b5
commit 162a158a85
4 changed files with 113 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
RUN npm run build
RUN npm prune --production
FROM node:22-alpine
USER node:node
WORKDIR /app
COPY --from=builder --chown=node:node /app/build build/
COPY --from=builder --chown=node:node /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]