Toun / Dockerfile
babaTEEpe's picture
Upload 3 files
95eb85b verified
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Expose the port the app runs on (Hugging Face default is 7860)
EXPOSE 7860
# Command to run the application
# We use python main.py to leverage our port-discovery logic in code
CMD ["python", "main.py"]