johncming / golang-project-with-dockerfile

Example application with Golang and Docker

Home Page:https://codefresh.io/docs/docs/learn-by-example/golang/golang-hello-world/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

golang project with docker

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

About

Example application with Golang and Docker

https://codefresh.io/docs/docs/learn-by-example/golang/golang-hello-world/


Languages

Language:AMPL 50.4%Language:Dockerfile 49.6%