Commit graph

3 commits

Author SHA1 Message Date
Quentin McGaw
ceb8cfcd76 Added Docker labels and Go commit, version and buildSource 2019-07-01 11:51:08 +02:00
Quentin McGaw
1542c70b53 Reworked Dockerfile for a more production oriented usage
- Added .dockerignore to speed up build context and avoid rebuilding when unecessary
- Specified Alpine and Go versions as build arguments
- Specified Go target CPU architecture as build arguments to be able to build for ARM devices
- Specified base images as build arguments to be able to build for ARM devices
- Trimmed down size of final image using `-a -installsuffix cgo -ldflags="-s -w"` go build flags and by copying the statically built binary only to the final image
- Added clear build and run instructions for the Docker container
2019-07-01 09:57:48 +02:00
Jesse Duffield
cf5ec17197 repurpose lazygit code 2019-05-12 10:32:02 +10:00