Skip to content

Demonstration of multistage Dockerfile for hello world go application.

Notifications You must be signed in to change notification settings

sderohan/docker-golang-hello-world-multistage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

example workflow

In this repo we have Multistage Dockerfile for the Hello World Go application.

Also we have the cron enabled github CI to validate the dockerfile build weekly and if any failure occurs while building slack notification is triggered.

One can run this application using below commands.

You should have the docker and git installed on your system.

  1. Clone the repository:
git clone https://github.com/sderohan/docker-golang-hello-world-multistage.git
  1. Change into the docker-golang-hello-world-multistage folder:
cd docker-golang-hello-world-multistage
  1. Build the docker image hello-go is name and latest is the tag of the docker image:
docker build . -t hello-go:latest
  • you can check the image which got build on your system using docker image ls command
  1. Create the container of the recent image build which will run application inside it automatically:
 docker run --rm hello-go:latest 

About

Demonstration of multistage Dockerfile for hello world go application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published