ihumaunkabir / go-docker-deployment

A go application has been deployed to docker container using an image configuration based on the requirements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy go application in Docker Container

A go application has been deployed to docker container using an image configuration based on the requirements.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Docker

Installation

  1. Clone the repo
git clone https://github.com/oasiscse/go-docker-deployment.git
  1. Go to project directory and build image -
docker build . -t go-docker-dep
  1. To run the image (a running image is container)
docker run -p 3000:3000 go-docker-dep

Test the server is running

  1. Go to http://localhost:3000 (YourHostIP:3000)

Response

{"Greetings" : "You are awesome!"}

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Open a Pull Request

License

Distributed under the MIT License.

Contact

Tweet me - @ihumaunkabir
Find me on ihumaun.com

About

A go application has been deployed to docker container using an image configuration based on the requirements.


Languages

Language:Dockerfile 54.3%Language:Go 45.7%