Spaces:
Build error
Build error
Download Dockerfile from Digoman/pptx-generator: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/Digoman/pptx-generator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Digoman/pptx-generator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Digoman/pptx-generator/resolve/main/Dockerfile
630 Bytes
| FROM python:3.12-slim | |
| # Set working directory | |
| WORKDIR /code | |
| # Install system dependencies if any are needed (e.g. for image processing) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy and install python dependencies | |
| COPY requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all application code to container | |
| COPY . /code | |
| # Expose Hugging Face default port | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Run FastAPI app with Uvicorn | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |