weacast / weacast-grib2json

CLI to converts GRIB2 files to JSON
MIT License
40 stars 9 forks source link

Added multi-stage build to Dockerfile #6

Closed fabiogaragiola closed 5 years ago

fabiogaragiola commented 5 years ago

The current Dockerfile produces the final image using the whole Maven image which is more than 700MB in size. The multi-stage Dockerfile copies only the files required to run grib2json in an Alpine based OpenJRE image reducing the size of the final image to just 100MB.

claustres commented 5 years ago

I did not know multi-stage build, it seems to be a great addition, thanks.

As we don't really have tests for the Docker image I assume you have already tested it.