fix building docker image

Use go modules instead of dep.  Use two stage build to build a minimal
(4 MB) application image.

Fixes #51 #71 #78
This commit is contained in:
Will Norris
2021-07-27 23:02:12 -07:00
parent 874627749a
commit e59616150a
2 changed files with 18 additions and 8 deletions

View File

@@ -38,7 +38,7 @@ docker run -it google/addlicense -h
- Usage example
```bash
docker run -v ${PWD}:/go/src/app/ -it google/addlicense -c "Google LLC" *.go
docker run -v ${PWD}:/src -it google/addlicense -c "Google LLC" *.go
```
## license