reservation-front/docker-compose.yml
Ali Asadi 0171494734 fix: correct Docker setup so the build succeeds
- Remove pnpm-lock.yaml from .dockerignore (required by --frozen-lockfile)
- Switch builder from node:20-alpine to node:22 (pnpm@latest needs Node 22+)
- Switch nginx:stable-alpine to nginx:stable (alpine tags timed out on pull)
- Remove apk dependencies not needed for this pure JS project
- Fix dev service port to 5174 to avoid conflict with production on 5173
- Drop obsolete docker-compose version field
- Add .pnpm-store to .gitignore

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-16 16:18:47 +03:30

21 lines
478 B
YAML

services:
web:
build: .
image: campaign-web:latest
ports:
- "5173:80"
environment:
- NODE_ENV=production
restart: unless-stopped
dev:
image: node:22
working_dir: /app
volumes:
- ./:/app:cached
- /app/node_modules
command: sh -c "corepack enable && corepack prepare pnpm@latest --activate && pnpm install && pnpm dev --host 0.0.0.0"
ports:
- "5174:5173"
environment:
- CHOKIDAR_USEPOLLING=true