File size: 665 Bytes
64cd325 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
version: '3.8'
services:
kronos-api:
build:
context: ..
dockerfile: ./kronos-api-service/Dockerfile
ports:
- "7860:7860"
environment:
# For local testing, you can set a fixed API key.
# For production (like Hugging Face Spaces), this should be set via secrets.
- KRONOS_API_KEY=my-secret-local-key
volumes:
# Mount the service code for live-reloading during development
- .:/app
# Mount a local directory to the container's huggingface cache directory.
# This will persist downloaded models on your host machine.
- ../.hf_cache:/root/.cache/huggingface
restart: unless-stopped |