- Add nginx.conf for proxying API requests to backend - Update frontend Dockerfile for production build with nginx - Move hardcoded values to .env variables in docker-compose.yml - Add .env.example template for configuration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19 lines
288 B
Docker
19 lines
288 B
Docker
# Build stage
|
|
FROM node:20-slim AS build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json* ./
|
|
RUN npm install
|
|
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# Production stage - just serve static files
|
|
FROM nginx:alpine
|
|
|
|
# Copy built frontend
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|