Download Dockerfile from Ali2206/Checklist: direct link, hf CLI and curl.
- Browser
- Download file 399 Bytes
-
https://huggingface.co/spaces/Ali2206/Checklist/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ali2206/Checklist/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ali2206/Checklist/resolve/main/Dockerfile
399 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port that FastAPI will run on | |
| EXPOSE 8000 | |
| # Set environment variables | |
| ENV PORT=8000 | |
| ENV CORS_ORIGIN=* | |
| # Run the FastAPI application using our startup script | |
| CMD ["python", "run.py"] | |