Files
anime-qize/frontend/Dockerfile
mamonov.ep 333de65fbd Add nginx reverse proxy and environment configuration
- 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>
2026-01-12 11:02:33 +03:00

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