Spaces:
Build error
Build error
File size: 757 Bytes
3dd2bab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | version: '3.8'
services:
backend:
build:
context: .
dockerfile: Dockerfile.dev.backend
ports:
- "8000:8000"
volumes:
- ./backend:/app/backend
environment:
- PYTHONUNBUFFERED=1
command: uvicorn main:app --host 0.0.0.0 --port 8000 --reload
frontend:
build:
context: .
dockerfile: Dockerfile.dev.frontend
ports:
- "3000:3000"
volumes:
- ./frontend:/app
- /app/node_modules
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
command: npm run dev
# Production-like test (simulates Hugging Face)
production:
build:
context: .
dockerfile: Dockerfile
ports:
- "7860:7860"
environment:
- NODE_ENV=production |