master / Dockerfile
Mustjab Hassan Malik
Update Dockerfile
c7f1b9e verified
Raw History Blame Contribute Delete
526 Bytes
FROM python:3.10-slim
WORKDIR /app
# System dependencies install karein (ffmpeg video generation ke liye zaroori hai)
RUN apt-get update && apt-get install -y \
git \
git-lfs \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
# Python dependencies copy aur install karein
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# App ka baaki code copy karein
COPY . .
# Gradio default port expose karein
EXPOSE 7860
# Application run karein
CMD ["python", "app.py"]