Merge branch 'docker'

This commit is contained in:
lzzy12 2019-10-27 18:58:58 +05:30
commit 6ec7a716d3
4 changed files with 23 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM python:3.8-slim-buster
RUN mkdir /bot
RUN chmod 777 /bot
COPY . /bot
WORKDIR /bot
RUN apt-get update
RUN apt-get install -y aria2
RUN pip install -r /bot/requirements.txt
CMD ["bash","start.sh"]

4
generate_drive_token.py Normal file
View File

@ -0,0 +1,4 @@
from bot.helper.mirror_utils.gdriveTools import GoogleDriveHelper
drive = GoogleDriveHelper()
drive.authorize()

5
heroku.yml Normal file
View File

@ -0,0 +1,5 @@
build:
docker:
worker: Dockerfile
run:
worker: bash start.sh

1
start.sh Executable file
View File

@ -0,0 +1 @@
./aria.sh; python -m bot