parent
4e4934069f
commit
593094d14b
@ -0,0 +1 @@
|
||||
Dockerfile
|
@ -1,3 +1,5 @@
|
||||
assets/
|
||||
.env
|
||||
reddit-bot-351418-5560ebc49cac.json
|
||||
reddit-bot-351418-5560ebc49cac.json
|
||||
__pycache__
|
||||
out
|
@ -0,0 +1,14 @@
|
||||
FROM mcr.microsoft.com/playwright
|
||||
|
||||
RUN apt update
|
||||
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
|
||||
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"]
|
Loading…
Reference in new issue