diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..845fd7c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.10 + +WORKDIR /app + +COPY . . + +CMD ["python", "script.py"] diff --git a/Dockerfile.txt b/Dockerfile.txt new file mode 100644 index 0000000..97c359f --- /dev/null +++ b/Dockerfile.txt @@ -0,0 +1,7 @@ +FROM python:3.10 + +WORKDIR /app + +COPY . . + +CMD ["python", "script.py"] \ No newline at end of file diff --git a/script.py b/script.py index 8395f61..854fd56 100644 --- a/script.py +++ b/script.py @@ -1,7 +1,7 @@ import time -print("🚀 Container Started") +print("🚀 Container Started", flush=True) while True: - print("Hello World") + print("Hello World", flush=True) time.sleep(5) \ No newline at end of file