first commit

This commit is contained in:
2025-10-21 22:04:03 -06:00
commit 4e71ef9c66
36 changed files with 2271 additions and 0 deletions

33
packages/web/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy workspace root files
COPY package*.json ./
COPY packages/shared ./packages/shared
COPY packages/web ./packages/web
# Install dependencies
RUN npm install
# Build shared package
WORKDIR /app/packages/shared
RUN npm run build
# Build web app
WORKDIR /app/packages/web
RUN npm run build
# Production stage
FROM nginx:alpine
# Copy built files to nginx
COPY --from=builder /app/packages/web/dist /usr/share/nginx/html
# Copy nginx configuration
COPY packages/web/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]