Skip to content

Commit 59ea5ea

Browse files
author
Syntax-Vibe-Amir
committed
initial commit
0 parents  commit 59ea5ea

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"DockerRun.DisableDockerrc": true
3+
}

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM python:3.10-slim
2+
WORKDIR /app
3+
COPY app.py .
4+
CMD ["python", "app.py"]

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Simple Dockerized Python App
2+
3+
This is a basic Python application that prints a message to the terminal, packaged inside a Docker container.
4+
5+
## How to Run
6+
7+
1. Build the Docker image:
8+
```
9+
docker build -t hello-docker .
10+
```
11+
12+
2. Run the container:
13+
```
14+
docker run hello-docker
15+
```
16+
17+
Expected Output:
18+
```
19+
Hello from inside a Docker container!
20+
```

app.py

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

0 commit comments

Comments
 (0)