From 58b4c6e11677caa93285a9927880e64695816ac5 Mon Sep 17 00:00:00 2001 From: Olli Graf Date: Sun, 18 May 2025 10:47:40 +0200 Subject: [PATCH] date_diff Dockerfile --- date_diff.py | 4 ++-- docker/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 date_diff.py 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"]