Dockerfile + CI/CD Pipeline
Deploy Portfolio Selfmade / deploy (push) Successful in 25s

This commit is contained in:
2026-05-10 14:10:30 +02:00
parent afb362c80b
commit 9950c32a8e
2 changed files with 33 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY pnpm-lock.yaml pnpm-workspace.yaml package.json .npmrc ./
COPY apps/web/package.json apps/web/
RUN npm install -g pnpm && pnpm install --no-frozen-lockfile
COPY apps/web/ apps/web/
WORKDIR /app/apps/web
RUN pnpm run build
FROM nginx:stable-alpine
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]