-
-
Notifications
You must be signed in to change notification settings - Fork 579
Reduce number of layers and provide an Alpine variant #1132
Reduce number of layers and provide an Alpine variant #1132
Conversation
fcf1fb0
to
782d834
Compare
8c372fc
to
a66c0e0
Compare
I cleaned things up so it's not so bad...it follows most best practices and takes advantage of the cache -- putting stuff that does not change at the top |
@drnic have a peek -- there's not much more I can do to clean this up short of switching the base image to alpine |
ac9ad30
to
db36d0d
Compare
db36d0d
to
7141699
Compare
My changes:
Current image prior
As you can see - this is a significant reduction in the number of layers -- while the size may not have changed, the number of layers it needs to download should speed things up. |
Well that is a pity that we didn't get a nice size improvement from that technique. Nice work though! |
Not giving up -- I'm cobbling together an alpine variant...so stay
tuned...let's see...
…On 06/22/2018 01:42 AM, Dr Nic Williams wrote:
Well that is a pity that we didn't get a nice size improvement from
that technique. Nice work though!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1132 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABaMKUSEqVlYvgHMMMtO-vKZ44vFJTgks5t_IOvgaJpZM4UzHxS>.
|
7141699
to
cc59dad
Compare
Mine with Alpine as a base
Final resulting size: 1.38GB |
cc59dad
to
8c0a24f
Compare
Sorry for the barrage of comments: Final resulting size: The Alpine-based image is 1.38GB |
2c6f232
to
8c0a24f
Compare
Make base image clean up after itself better and reduce layers Size unfortunately could not be reduced in any significant way.
8c0a24f
to
00030e1
Compare
This refactors the dockerfile to use less layers and properly clean up after itself.
I have provided a new Dockerfile named
Dockerfile.slim.build
-- which can be tagged as alpine-based. Additionally, I did as much as I could do with the debian-based image.Fixes #1130