Spaces:
Runtime error
Runtime error
Download Dockerfile from KhairulAmirinUM/testFastAPI: direct link, hf CLI and curl.
- Browser
- Download file 322 Bytes
-
https://huggingface.co/spaces/KhairulAmirinUM/testFastAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KhairulAmirinUM/testFastAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KhairulAmirinUM/testFastAPI/resolve/main/Dockerfile
322 Bytes
| FROM python:3.11 | |
| WORKDIR /code | |
| COPY ./req.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir -r /code/requirements.txt | |
| COPY ./src /code/src | |
| # Set the entry point for FastAPI (assumes the app is in takjadi.main.py and the instance is 'app') | |
| CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8080"] |