File size: 572 Bytes
cbb37ce
 
 
 
 
 
 
e5edbcb
cbb37ce
 
 
 
 
 
e5edbcb
cbb37ce
 
 
 
 
e5edbcb
cbb37ce
 
 
 
e5edbcb
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
FROM python:3.10

# Install system dependencies
RUN apt-get update && \
    apt-get install -y ffmpeg libsndfile1 git-lfs && \
    git lfs install

# Create non-root user
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /app

# Copy requirements first (better Docker caching)
COPY --chown=user requirements.txt requirements.txt

RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Copy entire repo (including pyharp folder)
COPY --chown=user . /app

EXPOSE 7860

CMD ["python", "app.py"]