Demucs_CPU / Dockerfile
lllindsey0615's picture
Switch to Docker; install libgl1 instead of libgl1-mesa-glx
68c75e1
raw
history blame contribute delete
605 Bytes
# Use a slim Python base (Debian trixie based)
FROM python:3.10-slim
# System deps: note we install **libgl1** (replacement), not libgl1-mesa-glx
RUN apt-get update && apt-get install -y --no-install-recommends \
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
WORKDIR /app
# Install Python deps first for layer caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy the app
COPY . .
# Gradio defaults
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
EXPOSE 7860
CMD ["python", "app.py"]