I have an outstanding pull request to add explicit copying of deps to a target folder (like lein libdir) to depstar:
https://github.com/healthfinch/depstar/pull/3 <https://github.com/healthfinch/depstar/pull/3> (for esoteric reasons one of the places I deploy demands I use "thin jars" which is essentially the app and dependencies side-by-side in individual jars) But if all you want to do is make sure you're caching the deps in their own step in the dockerfile, just run something like clj -Stree before your build step. If you want to control the exact place where they end up instead of ~/.m2, there's probably an environment variable somewhere to customize that. Luke. > On Jun 3, 2018, at 11:30 AM, Jason Whitlark <[email protected]> wrote: > > When building docker images with lein, I frequently have a run lein.deps > before building, to cache the deps in the image. I'm not clean on how to > accomplish the same thing with deps.edn. Any suggestions? > > Cheers, > ~Jason > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > <http://groups.google.com/group/clojure?hl=en> > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
