Alright, you do in fact need to have the docker file actually start something.
I also swapped the exit command out for a sleep command. It should loop through everything once an hour
This commit is contained in:
@@ -7,3 +7,5 @@ RUN pip install manga-py
|
|||||||
RUN pip install sqlalchemy
|
RUN pip install sqlalchemy
|
||||||
RUN pip install pymysql
|
RUN pip install pymysql
|
||||||
|
|
||||||
|
|
||||||
|
CMD ["python", "./main.py"]
|
||||||
3
main.py
3
main.py
@@ -1,5 +1,6 @@
|
|||||||
import sqlalchemy as db
|
import sqlalchemy as db
|
||||||
import json
|
import json
|
||||||
|
import time
|
||||||
# from manga_py1.parser import Parser
|
# from manga_py1.parser import Parser
|
||||||
# from manga_py1.info import Info
|
# from manga_py1.info import Info
|
||||||
# from Downloader import my_awesome_handler
|
# from Downloader import my_awesome_handler
|
||||||
@@ -88,7 +89,7 @@ def upload_jason():
|
|||||||
while True:
|
while True:
|
||||||
print("1. Download \n 2. Upload\n 3. Exit")
|
print("1. Download \n 2. Upload\n 3. Exit")
|
||||||
download()
|
download()
|
||||||
exit()
|
time.sleep(3600)
|
||||||
# val = input(">>>")
|
# val = input(">>>")
|
||||||
# if val == "1":
|
# if val == "1":
|
||||||
# download()
|
# download()
|
||||||
|
|||||||
Reference in New Issue
Block a user