I'm doing some e2e testing where a Django app is involved. At some point in the pipeline I have to do something like this:
WithExec([]string{"/src/manage.py", "migrate", "--noinput"})
I'm introducing a time variable to invalidate the cache, but this is also making the build slower because the Dockerfile is also doing things like manage.py collectstatic or manage.py compilemssages, so I have to wait an extra 30s there. I'm trying to figure out if this is something I should be addressing by rearranging my Dockerfile, e.g. multiple stages, or is it something I'm donig wrong in my Dagger pipeline?
Thank you in advance!