LONG Image Build Time

I’m using some Themes in my Open Edx project.
the problem is with every single change in the theme, I have to rebuild the Dockerfile and it takes nearly 20 minutes which is a lot!!

why we don’t separate Time-consuming parts like apt and pip packages in a base image and use this image in the main Dockerfile?

apt packages:

and pip packages:

this will reduce build time massively.

1 Like

Hi @Emad! Are you using Tutor for building images or the edx-platform Dockerfile? Tutor uses a different approach: tutor/Dockerfile at e7d3e722cea97c6c955001b6fbf170748abde475 · overhangio/tutor · GitHub