Spaces:
Sleeping
Sleeping
Download Dockerfile from Arclen/ucprojects-backend: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/Arclen/ucprojects-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Arclen/ucprojects-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Arclen/ucprojects-backend/resolve/main/Dockerfile
688 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install build dependencies for some Python packages | |
| RUN apt-get update && apt-get install -y build-essential gcc git && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -U pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Ensure python-multipart is present even if cache/stale requirements layer is reused | |
| RUN pip install --no-cache-dir python-multipart | |
| COPY . /app | |
| # Use port 7860 which is commonly routed by hosting platforms like Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Start the app on port 7860 | |
| CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860", "--loop", "asyncio", "--http", "h11"] | |