Spaces:
Paused
Paused
Download Dockerfile from Fred808/Desk-Back2: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Fred808/Desk-Back2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Fred808/Desk-Back2/resolve/main/Dockerfile
540 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y gcc | |
| # Copy requirements and install first (for better layer caching) | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| # Copy the rest of the code | |
| COPY . . | |
| # Expose FastAPI default port | |
| EXPOSE 7860 | |
| # Command to run the app | |
| CMD ["python", "main.py"] | |