Spaces:
Runtime error
Runtime error
Download Dockerfile from utkarsh134/FastAPI-Experience-Extractor: direct link, hf CLI and curl.
- Browser
- Download file 557 Bytes
-
https://huggingface.co/spaces/utkarsh134/FastAPI-Experience-Extractor/resolve/f6d86ffab6ee69dc7d366ba763933f9ee7c565cc/Dockerfile
- Command line
-
hf download hf://spaces/utkarsh134/FastAPI-Experience-Extractor@f6d86ffab6ee69dc7d366ba763933f9ee7c565cc/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/utkarsh134/FastAPI-Experience-Extractor/resolve/f6d86ffab6ee69dc7d366ba763933f9ee7c565cc/Dockerfile
557 Bytes
| # Use Python 3.10 as base image | |
| FROM python:3.11-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements file | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the application code | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |