Download Dockerfile from WHF-Manager-API-Key-Sheet/Worker-BridgeWorker: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/spaces/WHF-Manager-API-Key-Sheet/Worker-BridgeWorker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/WHF-Manager-API-Key-Sheet/Worker-BridgeWorker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/WHF-Manager-API-Key-Sheet/Worker-BridgeWorker/resolve/main/Dockerfile
327 Bytes
| FROM python:3.11-slim | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Chép file logic của load balancer và đổi tên thành app.py trong container | |
| COPY ./app.py /code/app.py | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] |