diff --git a/Dockerfile b/Dockerfile index 940e5c5..0780da0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM python:3 ADD main.py / ADD requirements.txt / +ADD templates /templates VOLUME /download/ diff --git a/main.py b/main.py index 4215ad7..134314e 100644 --- a/main.py +++ b/main.py @@ -61,8 +61,9 @@ def download(): # os.system(execute) # exec_command = subprocess.Popen(execute, stdout=subprocess.PIPE) - book['output'] = exec_command.communicate() - print(exec_command.args) + # book['output'] = exec_command.communicate() + exec_command.communicate() + book['command'] = exec_command.args updated.append(book)