File size: 1,033 Bytes
05021ce
 
 
 
 
 
 
 
 
 
 
 
c25e13e
05021ce
c25e13e
05021ce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c25e13e
 
05021ce
 
 
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
40
41
42
FROM python:3.11

# RUN pip install --no-cache-dir pip -U && \
#     pip install --no-cache-dir \
#     datasets \
#     "huggingface-hub>=0.30" \
#     "hf-transfer>=0.1.4" \
#     "protobuf<4" \
#     "click<8.1" \
#     "pydantic~=1.0"

WORKDIR /app
COPY requirements.txt .
# Copy project files

RUN apt-get update && apt-get install -y \
    # git \
    # git-lfs \
    ffmpeg \
    # libsm6 \
    # libxext6 \
    # cmake \
    # rsync \
    # libgl1 \
    g++ \
    libsndfile1 \
    timidity \
    && rm -rf /var/lib/apt/lists/* 
    # && git lfs install
# RUN apt-get update && \
#     apt-get install -y curl && \
#     curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
#     apt-get install -y nodejs && \
#     rm -rf /var/lib/apt/lists/* && \
#     apt-get clean

# Install main requirements with no build isolation to fix numpy dependency issues
RUN pip install --no-cache-dir numpy==2.1.2 && pip install --no-cache-dir --no-build-isolation -r requirements.txt
COPY . .
EXPOSE 7860

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