File size: 531 Bytes
bff8706
657fa61
4e93474
 
dcf9b38
bd9f2a7
b7c10e1
 
dcf9b38
bd9f2a7
3fe1ddd
657fa61
dcf9b38
8d3735e
b5ab7f5
 
 
 
4e93474
 
 
 
7bf2558
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.11.1-bullseye

USER root

COPY . /app

RUN chmod -R 777 /app

WORKDIR /app

RUN apt update && apt install ffmpeg -y

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

RUN python3 -m pip install -U --no-cache-dir pip setuptools wheel

RUN python3 -m pip install --force-reinstall --no-cache-dir https://github.com/yt-dlp/yt-dlp/archive/master.tar.gz

RUN mkdir -p /.cache/huggingface/hub
RUN chown -R root:root /.cache/huggingface/hub
RUN chmod -R 777 /.cache/huggingface/hub

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