| version: "3.7" | |
| services: | |
| hf_endpoints_emulator: | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: hf_endpoints_emulator | |
| command: ["--port", "4999", "--handler", "handler.py"] | |
| volumes: | |
| - $PWD:/workspace | |
| - /var/run/docker.sock:/var/run/docker.sock | |
| - $HOME/.cache/huggingface:/root/.cache/huggingface | |
| env_file: | |
| - settings.env | |
| ports: | |
| - 4999:4999 | |