feat: add docker deploy configuration for staging and production

This commit is contained in:
mono
2026-03-15 21:02:46 -05:00
parent 65f8b545c6
commit 95a9a5cb1f
5 changed files with 167 additions and 0 deletions

20
deploy/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Stage 1: Build with Node.js
FROM node:20-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve with Nginx
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;"]