date_diff
Dockerfile
This commit is contained in:
4
date_diff.py
Normal file → Executable file
4
date_diff.py
Normal file → Executable file
@@ -1,4 +1,4 @@
|
|||||||
#! python
|
#! /usr/bin/python
|
||||||
import sys
|
import sys
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
@@ -49,4 +49,4 @@ if __name__ == "__main__":
|
|||||||
date1= 'heutigen Tag'
|
date1= 'heutigen Tag'
|
||||||
if sys.argv[2] == '$today':
|
if sys.argv[2] == '$today':
|
||||||
date2= 'heutigen Tag'
|
date2= 'heutigen Tag'
|
||||||
print(f"Zwischen dem {date1} und dem {date2} liegen {difference} Tage.")
|
print(f"Zwischen dem {date1} und dem {date2} liegen {difference} Tage.")
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
# Python Basis-Image
|
# Python Basis-Image
|
||||||
FROM python:3.8
|
FROM python:3.11-alpine
|
||||||
|
|
||||||
# Arbeitsverzeichnis innerhalb des Containers
|
# Arbeitsverzeichnis innerhalb des Containers
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
@@ -19,4 +19,4 @@ COPY fib/static /app/static
|
|||||||
COPY fib/templates /app/templates
|
COPY fib/templates /app/templates
|
||||||
|
|
||||||
# Befehl, der die Anwendung startet
|
# Befehl, der die Anwendung startet
|
||||||
CMD ["python", "app.py"]
|
CMD ["python", "/app/app.py"]
|
||||||
|
Reference in New Issue
Block a user