do people building docker images for clojure do something to prevent downloading all dependencies on every build?
download common deps into a base image to use periodically?
.m2 as a volume here
hmm that might solve my private repository issue as well
That's for dev at least
Yeah, I had the same concern
for prod you just redownload for each build?
No we do uberjars
you build the uberjar outside the dockerfile and just copy it in?
or you don't use docker at all you mean?
We dont run in containers in prod
gotcha
If we would I guess copying the uberjar seem like a good solution anyway
yeah i guess i'm building on circleci so i have a consistent build environment, building an uberjar and copying it into a docker image isn't terrible
Downloading the deps from prod is not good imho, ex you might need priv repo credentials etc
Sounds good yep
right that's what i'm trying to solve, i was going to just build the uberjar inside the docker file but for some insane reason passing anything sensitive at build time is like impossible in docker and also not redownloading all of .m2 would be nice