subtitle-medium / Dockerfile
Gagandeep12's picture
Upload Dockerfile
3db7dc4 verified
raw
history blame contribute delete
549 Bytes
# Use Python base image
FROM python:3.10-slim
# Install system dependencies (ffmpeg is required for subtitles/video processing)
RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/*
# Copy dependency list and install Python packages
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy your whole app code into container
COPY . /app
WORKDIR /app
# Hugging Face Spaces requires the app to listen on port 7860
ENV PORT=7860
# Run the Flask app
CMD ["python", "app.py"]