Skip to content

Commit a04b048

Browse files
docker
1 parent a00d61c commit a04b048

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

docker-app/dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Use the official Python image from DockerHub
2+
FROM python:3.11-slim
3+
4+
# Set the working directory in the container
5+
WORKDIR /sample
6+
7+
# Copy the local script to the container
8+
COPY sample.py .
9+
10+
# Run the script
11+
CMD ["python", "sample.py"]
12+

docker-app/sample.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("Hello Hemanth, this is from Docker!")

0 commit comments

Comments
 (0)