You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
496 B
17 lines
496 B
FROM python:3.10.9-slim
|
|
|
|
RUN apt update
|
|
RUN apt-get install -y ffmpeg
|
|
RUN apt install python3-pip -y
|
|
|
|
RUN mkdir /app
|
|
ADD . /app
|
|
WORKDIR /app
|
|
RUN pip install -r requirements.txt
|
|
|
|
# tricks for pytube : https://github.com/elebumm/RedditVideoMakerBot/issues/142
|
|
# (NOTE : This is no longer useful since pytube was removed from the dependencies)
|
|
# RUN sed -i 's/re.compile(r"^\\w+\\W")/re.compile(r"^\\$*\\w+\\W")/' /usr/local/lib/python3.8/dist-packages/pytube/cipher.py
|
|
|
|
CMD ["python3", "main.py"]
|