Spaces:
Running
Running
Download Dockerfile from KeralaTimetable/ktu-papers-api: direct link, hf CLI and curl.
- Browser
- Download file 414 Bytes
-
https://huggingface.co/spaces/KeralaTimetable/ktu-papers-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/KeralaTimetable/ktu-papers-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/KeralaTimetable/ktu-papers-api/resolve/main/Dockerfile
414 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set the working directory inside the server | |
| WORKDIR /app | |
| # Copy your requirements and install them | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all your Python files, the database, and the logo | |
| COPY . . | |
| # Hugging Face requires apps to run on port 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] | |