Skip to content

Commit c9cd892

Browse files
committed
second commit
0 parents  commit c9cd892

3 files changed

Lines changed: 26 additions & 0 deletions

File tree

Commands.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
1 cd C:\temp\Sample - Python
2+
2 cd "C:\temp\Sample - Python"
3+
3 docker build -t samplepython .
4+
4 docker run samplepython
5+
5 docker build -t samplepython .
6+
6 docker run samplepython
7+
7 docker build -t samplepython .
8+
8 docker run samplepython
9+
9 docker ps -a
10+
10 docker rm fe1aa90a8ffb
11+
11 docker rmi samplepython --force
12+
12 git init
13+
13 git status
14+
14 git add .
15+
15 git status
16+
16 git commit -m "my first commit"
17+
17 git status
18+
18 git remote add origin https://github.com/pavanshivanand/samplepython.git
19+
19 git remote -v
20+
20 git push origin master

dockerfile

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

sample.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
print("Hello World")
2+
print("How are you")

0 commit comments

Comments
 (0)