Skip to content

a-mankinenko/golang-sample-app

 
 

Repository files navigation

Codefresh1 Go example

Original source: https://github.com/callicoder/go-docker

Build locally

Normal docker build (not using modules) - image size is 775MB

docker build . -t go-sample-app-full

Optimized Build (with modules - image size is 389MB

docker build . -f Dockerfile.mod -t go-sample-app-modules

Multi-stage build (fully optimized) - image size is 16 MB

docker build . -f Dockerfile.multistage -t go-sample-app-multi

Run locally

docker run -p 8080:8080 go-sample-app-multi

and then visit in your browser

Build in Codefresh

Sample pipelines:

Read https://codefresh.io/docs/docs/learn-by-example/golang/golang-hello-world/ for more details push11sq

Releases

No releases published

Packages

No packages published

Languages

  • Go 64.2%
  • AMPL 18.0%
  • Dockerfile 17.8%