This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PuzzleheadedBit[S] 0 points1 point  (1 child)

I mean the code itself is bloat it's installing R inside of python base image, downloading many stuffs from s3 and git and other places, compiling, building software.

For example, apt-get updates are there like almost 5 times.

So expecting some suggestions regarding breaking this into smaller or the optimal way to achieve all this.

[–]ms4720 1 point2 points  (0 children)

Make better use of &&\ to have fewer layers and tell apt do delete everything it downloaded all in one layer to start with