Spaces:
Sleeping
Sleeping
Download Dockerfile from CommunityPulse/communitypulse-env: direct link, hf CLI and curl.
- Browser
- Download file 478 Bytes
-
https://huggingface.co/spaces/CommunityPulse/communitypulse-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CommunityPulse/communitypulse-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CommunityPulse/communitypulse-env/resolve/main/Dockerfile
478 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application files | |
| COPY . . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run the FastAPI server | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |