Skip to content

Commit d076a0e

Browse files
Create Dockerfile:1
This script is for running the docker container based on the docker file.
1 parent 48316a9 commit d076a0e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#Script to run docker container on basis of dockerfile
2+
3+
docker build -t appname .
4+
5+
# run a new docker container named cashman
6+
docker run --name appname \
7+
-d -p 5000:5000 \
8+
appname
9+
10+
# fetch incomes from the dockerized instance
11+
curl http://localhost:5000/

0 commit comments

Comments
 (0)