We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00d61c commit a04b048Copy full SHA for a04b048
docker-app/dockerfile
@@ -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
@@ -0,0 +1 @@
+print("Hello Hemanth, this is from Docker!")
0 commit comments