Afthaab / Golang-with-simple-Dockerfile

This is basic go application built in order to construct a Docker image.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Golang-with-simple-Dockerfile

This is basic go application built in order to construct a Docker image.

The docker file created in the above application can be used to build a Docker image.

command to build Docker image

docker build -t imagename:tagname .

command to run the container

docker run -d -p DesiredPortNo:8080 imagename --name DesiredName

Here -d is used to run the port in detached mode

DesiredPortNo: You can give the desired port num of your choice make sure that no other application is running on that certain port

DesiredName: You can give any userdefined name in order to recognize the container

About

This is basic go application built in order to construct a Docker image.


Languages

Language:Dockerfile 53.3%Language:Go 46.7%