File size: 656 Bytes
4159dc2
 
b1cbef8
4159dc2
 
 
b1cbef8
4159dc2
b1cbef8
8f10b0b
4159dc2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive

#RUN apt-get update && \
#    apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
#    apt-get clean && apt-get -y autoremove

RUN apt-get update

RUN python -m pip install spaces pydantic

WORKDIR /app
COPY requirements.txt .
RUN python -m pip install  --verbose -r requirements.txt
RUN python -m pip cache purge


COPY InstallFromReadme.sh .
COPY README.md .
RUN chmod +x InstallFromReadme.sh
RUN ./InstallFromReadme.sh

COPY . .

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