Matchering / Dockerfile
2cylu2's picture
Update Dockerfile
583c387 verified
raw
history blame contribute delete
694 Bytes
FROM python:3.10
# Install system dependencies
RUN apt-get update && \
apt-get install -y ffmpeg libsndfile1 git-lfs && \
git lfs install && \
rm -rf /var/lib/apt/lists/*
# Create non-root user
RUN useradd -m -u 1000 user
USER user
WORKDIR /home/user/app
ENV PATH="/home/user/.local/bin:$PATH"
ENV PYTHONUNBUFFERED=1
# Copy files
COPY --chown=user . .
# Upgrade pip
RUN pip install --no-cache-dir --upgrade pip
# Install all Python deps in ONE layer (important)
RUN pip install --no-cache-dir \
gradio \
matchering \
symusic \
git+https://github.com/descriptinc/audiotools \
git+https://github.com/TEAMuP-dev/pyharp
EXPOSE 7860
CMD ["python", "app.py"]