File size: 694 Bytes
cbb37ce
 
 
 
 
583c387
 
cbb37ce
e5edbcb
cbb37ce
 
583c387
cbb37ce
583c387
 
cbb37ce
583c387
 
cbb37ce
5f4d77c
cbb37ce
 
583c387
5f4d77c
 
 
 
583c387
 
cbb37ce
 
 
e5edbcb
583c387
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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"]