File size: 836 Bytes
b6cc5f6
 
 
 
0730a19
 
 
b6cc5f6
 
 
 
 
 
 
0730a19
 
 
 
 
 
 
 
 
 
b6cc5f6
 
 
 
 
0730a19
b6cc5f6
 
0730a19
 
 
b6cc5f6
 
 
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
36
37
38
39
FROM python:3.10-slim

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV OMP_NUM_THREADS=4
ENV MKL_NUM_THREADS=4
ENV OPENBLAS_NUM_THREADS=4

WORKDIR /app

RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    ffmpeg \
    libsndfile1 \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender-dev \
    libgomp1 \
    fontconfig \
    fonts-dejavu-core \
    && rm -rf /var/lib/apt/lists/* \
    && mkdir -p /tmp/.fontconfig /tmp/.matplotlib \
    && chmod 777 /tmp/.fontconfig /tmp/.matplotlib

COPY requirements.txt /app/requirements.txt
RUN pip install --upgrade pip setuptools wheel
RUN pip install --no-cache-dir -r /app/requirements.txt

# Copy application files
COPY . /app

# Create tmp directory for model weights
RUN mkdir -p /tmp

EXPOSE 7860

CMD ["/bin/bash", "start.sh"]