Skip to content

aslenko/my-second-go-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#cd to src directory cd to src

#run go (locally) go run main.go

#build go (-o is output) go build -o ../bin/main.exe .

#build docker image docker build -t my-second-go-app .

#rebuld docker image (remove and reinstall) docker image rm --force my-second-go-app docker build -t my-second-go-app .

#run docker container in interactive mode and map port 8088 to 8083 docker run -it -p 8083:8088 my-second-go-app

#open browser and navigate to http://localhost:8083/

Releases

No releases published

Packages

No packages published