diff --git a/date_diff.py b/date_diff.py old mode 100644 new mode 100755 index 15988b2..bc72c8d --- a/date_diff.py +++ b/date_diff.py @@ -1,4 +1,4 @@ -#! python +#! /usr/bin/python import sys from datetime import datetime @@ -49,4 +49,4 @@ if __name__ == "__main__": date1= 'heutigen Tag' if sys.argv[2] == '$today': date2= 'heutigen Tag' - print(f"Zwischen dem {date1} und dem {date2} liegen {difference} Tage.") \ No newline at end of file + print(f"Zwischen dem {date1} und dem {date2} liegen {difference} Tage.") diff --git a/docker/Dockerfile b/docker/Dockerfile index 2213b1d..d272aa6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ # Python Basis-Image -FROM python:3.8 +FROM python:3.11-alpine # Arbeitsverzeichnis innerhalb des Containers WORKDIR /app @@ -19,4 +19,4 @@ COPY fib/static /app/static COPY fib/templates /app/templates # Befehl, der die Anwendung startet -CMD ["python", "app.py"] +CMD ["python", "/app/app.py"]