rog-golang-buddies / golang-template-repository

Kickstarter repository for a golang service
Apache License 2.0
17 stars 7 forks source link

fix(Dockerfile): readability and golang image update #45

Closed mridulganga closed 2 years ago

mridulganga commented 2 years ago

Summary of changes

  1. Made changes to Dockerfile to use golang's alpine image for smaller size which helps build image faster
  2. Added make build to build the golang binary replacing the embedded build command
  3. Added an Optional PORT env var and expose command
  4. Minor changes to Makefile to use specific main.go file instead of folder, and added few build args (-v - listing packages while building and -a - rebuilding prebuilt packages everytime) and envs (to disable cgo and setting GOOS)
  5. Minor change in sonar-project.properties to add test inclusions parameter.
  6. Minor change in .gitignore to ignore vs code and pycharm IDE config folders.
haani-niyaz commented 2 years ago

Merging changes to v0.2.0 branch to control next release.