File size: 635 Bytes
686f866
557cfc9
5231799
18340e2
557cfc9
 
 
7e4dbca
5085f02
12f287c
557cfc9
 
 
 
 
 
c336072
18340e2
557cfc9
 
18340e2
 
557cfc9
 
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
FROM python:3.10-slim-bullseye

ENV COQUI_TOS_AGREED=1
WORKDIR /app

# Install dependencies for audio, torch, building wheels
RUN apt-get update && apt-get install -y --no-install-recommends \
    git ffmpeg libsndfile1 build-essential cmake pkg-config \
    libffi-dev libssl-dev \
    && rm -rf /var/lib/apt/lists/*

# Copy requirements
COPY requirements.txt .

# Upgrade pip and install requirements
RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir torch torchaudio torchcodec
RUN pip install --no-cache-dir -r requirements.txt

# Copy your app
COPY server.py .

EXPOSE 7860
CMD ["python", "server.py"]