Install GoLang
Install Docker
yum install java-1.8.0-openjdk -y
yum install golang -y
yum install docker -y
service docker start
go run helloworld.go
go build helloworld.go
Run the binary using below command
./helloworld
Build docker image
docker build -t helloworld:latest .
Tag image to docker repository
docker tag helloworld:latest naresh240/helloworld:latest
push image to docker container
docker login
docker push naresh240/helloworld:latest
docker run --name helloworld-container -p 3000:3000 -d naresh240/helloworld:latest