Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions riyasshajan@mulearn/Task2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM python:3.9-slim
WORKDIR /app
COPY script.py .
CMD ["python", "script.py"]
14 changes: 7 additions & 7 deletions script.py → riyasshajan@mulearn/Task2/script.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import time

print("🚀 Container Started")

while True:
print("Hello World")
time.sleep(5)
import time
print("🚀 Container Started")
while True:
print("Hello World")
time.sleep(5)