Download Dockerfile from Ezhil24/FASTAPI: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/Ezhil24/FASTAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ezhil24/FASTAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ezhil24/FASTAPI/resolve/main/Dockerfile
434 Bytes
| # Use official Python image as base | |
| FROM python:3.10 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy application files | |
| COPY main.py . | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install -r requirements.txt | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |