eclipse-agail / agile-core

Source code repository for agile core components
Eclipse Public License 2.0
7 stars 16 forks source link

Reduce image size with docker multi-stage #47

Closed cskiraly closed 7 years ago

cskiraly commented 7 years ago

Using the new docker multi-stage build process to achieve smaller images.

craigmulligan commented 7 years ago

Awesome!! What are the savings like? Did you try using -alpine-openjdk variant? That should get it even smaller.

cskiraly commented 7 years ago

Docker hub puts it 351 -> 192 MB, of which 178 MB is the base image. I can go JRE, and if there are no debs, I can go Alpine.

resin/nuc-alpine-openjdk:openjdk-8-jre-20170410 is only 63 MB, but using it would complicate the travis template for the BASEIMAGE substitution part when building for x86_64. Lets go with this PR, and then refine ...

cskiraly commented 7 years ago

I take your comment as a positive review and merge.