|
|
@ -2,11 +2,14 @@ FROM python:3.10.9-slim
|
|
|
|
|
|
|
|
|
|
|
|
RUN apt update
|
|
|
|
RUN apt update
|
|
|
|
RUN apt install python3-pip -y
|
|
|
|
RUN apt install python3-pip -y
|
|
|
|
|
|
|
|
RUN apt install -y gstreamer1.0-libav libnss3-tools libatk-bridge2.0-0 libcups2-dev libxkbcommon-x11-0 libxcomposite-dev libxrandr2 libgbm-dev libgtk-3-0
|
|
|
|
|
|
|
|
|
|
|
|
RUN mkdir /app
|
|
|
|
RUN mkdir /app
|
|
|
|
ADD . /app
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
|
RUN python -m playwright install
|
|
|
|
|
|
|
|
RUN python -m playwright install
|
|
|
|
|
|
|
|
|
|
|
|
# tricks for pytube : https://github.com/elebumm/RedditVideoMakerBot/issues/142
|
|
|
|
# tricks for pytube : https://github.com/elebumm/RedditVideoMakerBot/issues/142
|
|
|
|
# (NOTE : This is no longer useful since pytube was removed from the dependencies)
|
|
|
|
# (NOTE : This is no longer useful since pytube was removed from the dependencies)
|
|
|
|