File size: 386 Bytes
45a4975
3ddfa32
 
6688171
 
45a4975
6688171
 
15c03c1
6688171
c15077c
7bec0f7
1
2
3
4
5
6
7
8
9
10
11
12
FROM ubuntu
RUN apt update && apt install -y python3 python3-pip ffmpeg nano 
RUN pip install flask transformers librosa torch torchaudio gunicorn
RUN useradd -m -u 1000 user
USER user
WORKDIR /app
COPY --chown=user:user . /app
RUN chown -R user:user /app
RUN mkdir /app/cache
ENV HF_HOME=/app/cache
EXPOSE 7860
CMD ["gunicorn", "-b", ":7860", "-w", "1", "host:app", "--timeout", "100"]