From 38021fe9de5225e4301a88b75899eaaa70a6df85 Mon Sep 17 00:00:00 2001 From: Adithya N Ajith Date: Tue, 31 Mar 2026 19:38:00 +0530 Subject: [PATCH] Add files via upload TASK-2 SUBMISSION --- Dockerfile | 7 +++++++ Dockerfile.txt | 7 +++++++ script.py | 4 ++-- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 Dockerfile create mode 100644 Dockerfile.txt 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