- Added Dockerfile.dev for local development - Configured volume mounts for hot reloading - Set up Vite dev server with proper host binding Production environment: - Streamlined multi-stage build process - Removed Nginx in favor of future Caddy setup - Optimized container size and build steps
16 lines
292 B
YAML
16 lines
292 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web-dev:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.dev
|
|
ports:
|
|
- "5173:5173"
|
|
volumes:
|
|
- .:/app
|
|
- /app/node_modules
|
|
environment:
|
|
- NODE_ENV=development
|
|
- VITE_HOST=0.0.0.0
|
|
command: pnpm dev --host 0.0.0.0
|