Spaces:
Sleeping
Sleeping
| version: '3' | |
| services: | |
| book-detection-api: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| ports: | |
| - "7860:7860" | |
| environment: | |
| - TORCH_HOME=/tmp/.torch | |
| volumes: | |
| - model_cache:/tmp/.torch | |
| healthcheck: | |
| test: ["CMD", "curl", "-f", "http://localhost:7860/"] | |
| interval: 30s | |
| timeout: 10s | |
| retries: 3 | |
| start_period: 60s | |
| volumes: | |
| model_cache: | |