# Dockerfile FROM python:3.11-slim # create app dir WORKDIR /app ENV PYTHONUNBUFFERED=1 # copy project files COPY . /app # install deps RUN pip install --upgrade pip RUN pip install --no-cache-dir -r requirements.txt # create templates directory permissions RUN mkdir -p /tmp && chmod -R 777 /tmp # expose HF spaces port EXPOSE 7860 # default command: run uvicorn CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]