/docker-golang

Go, Dep, and Git

Primary LanguageMakefileMIT LicenseMIT

Docker Golang

Go, Zip, and Git

Usage

$ docker run --rm amaysim/golang:1.21.3-bullseye

# build image locally if you want to test locally
$ make build
# test the image
$ make test
# go inside the container
$ make shell

Update Docker image

  1. Apply the changes

For Golang version update, Makefile and Dockerfile need to be updated

  1. Build and test locally
  2. Commit and push
  3. Run $ make tag
  4. Go to hub.docker.com
  5. In Build Details tab, you should now see the build kicking off

Links