- Update README.md with v0.3.0 completion status and improved setup instructions - Update export/progress.md with completed tasks (53/55, 96% progress) - Update export/architecture.md with current project structure and implementation status - Add docker-compose.yml with PostgreSQL service - Add Dockerfile.backend for production builds - Add frontend/Dockerfile for multi-stage builds - Update .gitignore with comprehensive rules for Python, Node.js, and Docker Project status: - v0.2.0: Database and Backend API ✅ - v0.3.0: Frontend React implementation ✅ - v0.4.0: Reports and visualization (planned)
32 lines
499 B
Docker
32 lines
499 B
Docker
# Dockerfile.frontend
|
|
# Frontend React production image
|
|
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm ci
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build application
|
|
RUN npm run build
|
|
|
|
# Production stage with nginx
|
|
FROM nginx:alpine
|
|
|
|
# Copy built assets
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
# Copy nginx config (optional)
|
|
# COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|