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
- Apply the changes
For Golang version update, Makefile and Dockerfile need to be updated
- Build and test locally
- Commit and push
- Run
$ make tag
- Go to hub.docker.com
- In
Build Details
tab, you should now see the build kicking off
Links
- amaysim/golang on Docker Hub