realestate-com-au / shush

It's a secret.
169 stars 36 forks source link

Use build image for compilation to reduce the size of the target image #24

Closed janaz closed 4 years ago

janaz commented 4 years ago

Currently the docker image size is 160MB because it includes temporary files created during the compilation step.

This change is using a separate build stage to compile the static binary which is then copied to the target image. The resulting image size is 20MB

Some additional changes:

Fixes #23

stiak commented 4 years ago

Is it possible to do a re-release of 1.4.0 or a point release of 1.4.1 so the changes are available?

xzyfer commented 4 years ago

Could a new release please be cut with this change?

ajc commented 4 years ago

Here you go - thanks @TheTaylorHicks !