Merge branch 'docker'
This commit is contained in:
commit
6ec7a716d3
|
|
@ -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"]
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
from bot.helper.mirror_utils.gdriveTools import GoogleDriveHelper
|
||||
|
||||
drive = GoogleDriveHelper()
|
||||
drive.authorize()
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
build:
|
||||
docker:
|
||||
worker: Dockerfile
|
||||
run:
|
||||
worker: bash start.sh
|
||||
Loading…
Reference in New Issue