From abb101a8a74c516f541a51b4de6c8d68b91c2d81 Mon Sep 17 00:00:00 2001 From: Dan Dembinski Date: Tue, 31 Dec 2019 15:21:48 -0500 Subject: [PATCH] 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 --- Dockerfile | 2 ++ main.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ff6838a..a0258d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,3 +7,5 @@ RUN pip install manga-py RUN pip install sqlalchemy RUN pip install pymysql + +CMD ["python", "./main.py"] \ No newline at end of file diff --git a/main.py b/main.py index c4d4582..007ea09 100644 --- a/main.py +++ b/main.py @@ -1,5 +1,6 @@ import sqlalchemy as db import json +import time # from manga_py1.parser import Parser # from manga_py1.info import Info # from Downloader import my_awesome_handler @@ -88,7 +89,7 @@ def upload_jason(): while True: print("1. Download \n 2. Upload\n 3. Exit") download() - exit() + time.sleep(3600) # val = input(">>>") # if val == "1": # download()