Spaces:
Running
Running
Download Dockerfile from SpacesExamples/fastapi_dummy: direct link, hf CLI and curl.
- Browser
- Download file 224 Bytes
-
https://huggingface.co/spaces/SpacesExamples/fastapi_dummy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/SpacesExamples/fastapi_dummy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/SpacesExamples/fastapi_dummy/resolve/main/Dockerfile
224 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . . | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |