Spaces:
Configuration error
Configuration error
Download Dockerfile from Taimwe/trainhub-api: direct link, hf CLI and curl.
- Browser
- Download file 277 Bytes
-
https://huggingface.co/spaces/Taimwe/trainhub-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Taimwe/trainhub-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Taimwe/trainhub-api/resolve/main/Dockerfile
277 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p storage | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |