File size: 571 Bytes
cb0fcd5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime

ENV NUMBA_CACHE_DIR=/tmp

RUN apt update && apt install -y ffmpeg
RUN apt-get install -y curl git gcc libxml2-dev libxslt1-dev zlib1g-dev g++ 

RUN useradd -m -u 1000 user
USER user

WORKDIR /code

RUN chmod 777 /code

COPY . /code

RUN pip install -U pip;
RUN pip install wheel setuptools;
RUN pip install -r /code/requirements.txt

RUN git clone https://github.com/espnet/espnet.git
RUN pip install -U -e /code/espnet

EXPOSE 7860
ENV GRADIO_SERVER_NAME="0.0.0.0"

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