building a docker image from single module and its dependencies

90 views
Skip to first unread message

Sameh Mohamed

unread,
Jul 27, 2022, 4:44:09 PM7/27/22
to bazel-discuss
I work in a monorepo, and I am tasked with creating a python Docker image of a single app from the repo.

The app is basically what amounts to a python package, housed in a single directory of the monorepo.  It maintains a BUILD file with a few targets that define dependencies on a few other packages in the monorepo; each of course with their own BUILD targets.

I ran a dependency graph and I can see a list of the dependencies of the app.

My question is:

I am wondering if there's a simple way in a bazel to group this list of dependencies into a single archive, or even just a plan directory that I can COPY onto the docker image.

My instinct is that there much be something like this.  I have been looking for a couple of hours and not finding something right away.  Due to the time pressure for this task, I thought I would start a thread here while I continue looking for a solution.



Daniel Halperin

unread,
Jul 27, 2022, 4:49:09 PM7/27/22
to Sameh Mohamed, bazel-discuss

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/4c38a52e-26fa-4fe3-8565-1f60e65d2148n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages