pptx-generator / Dockerfile
Digoman
Deploy FastAPI PowerPoint reveal generator backend
865d27c
Raw History Blame Contribute Delete
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"]