Add Docker deployment with Traefik integration

- docker-compose.yml for container orchestration
- Dockerfile with multi-stage build (node builder + nginx)
- nginx.conf for SPA serving
This commit is contained in:
Erwin
2026-03-27 19:20:43 +00:00
parent 1acf1c4ff5
commit 9c20b0ed31
5 changed files with 64 additions and 1 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production stage
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]