video-summ-api / Dockerfile
AryanSingh04's picture
Update Dockerfile
d011d82 verified
raw
history blame contribute delete
577 Bytes
FROM python:3.10-slim
# System deps: ffmpeg is required for audio extraction
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg git && \
rm -rf /var/lib/apt/lists/*
# Caches go to /tmp (writable in Spaces)
ENV HF_HOME=/tmp/huggingface
ENV XDG_CACHE_HOME=/tmp
# Workdir
WORKDIR /app
# Python deps
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App code
COPY app.py .
# Expose the port Spaces expects
ENV PORT=7860
# Start FastAPI with uvicorn
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]