aaditya's picture
Create Dockerfile
d189ad2 verified
raw
history blame contribute delete
613 Bytes
FROM python:3.11-slim
ENV DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PYTHONUNBUFFERED=1
# System deps (note: libgl1 replaces libgl1-mesa-glx on Debian)
RUN apt-get update && apt-get install -y --no-install-recommends \
git git-lfs ffmpeg \
libgl1 libsm6 libxext6 libxrender1 libglib2.0-0 \
build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
WORKDIR /app
COPY . /app
# Python deps
RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt
# Gradio/Spaces: bind to the port Hugging Face provides
ENV PORT=7860
CMD ["python", "app.py"]