top | item 24180004

(no title)

heroic | 5 years ago

Split the dockerfile into 3 parts. builder image for gems. builder image for assets(nodejs and stuff). copy code from disk, gems from image one, assets from image two, into the third image. you will end up saving HUGE time

discuss

order

timClicks|5 years ago

Do you have an open source Dockerfile that demonstrates this pattern? I've used builder images before, but not multiple.

hadlock|5 years ago

The relevant search term is "base image"

Just remember to have a process to rebuild your base image at least once a month so you pick up latest security fixes etc.

save_ferris|5 years ago

Thanks, I’m gonna try this.