rhythmic-glass-66959
07/26/2022, 8:01 PMThe following files were not found in the Docker build context:
* src/python/some_package/some_file.py
hundreds-father-404
07/26/2022, 8:02 PMpython_sources
targets, but also add a file
target like this:
file(
name="some_file-file-tgt",
source="some_file.py",
)
name
can be what you want. Then I think dependency inference should pick it upbitter-ability-32190
07/26/2022, 8:02 PM_source
target when constructing the sandbox. Generally it is assumed you'd be first packaging into a pex_binary
.
(FWIW I have a proposal hoping to shift the paradigm here)hundreds-father-404
07/26/2022, 8:03 PMCurrently, the Docker plugin doesn't consider any _source target when constructing the sandbox.It considers
file
targetsbitter-ability-32190
07/26/2022, 8:03 PM_source
target 🙈rhythmic-glass-66959
07/26/2022, 8:04 PMfile
target...file
target did the trick!hundreds-father-404
07/26/2022, 8:11 PMrhythmic-glass-66959
07/26/2022, 8:58 PMpython_sources
target won't work for copying Python files. And also, an example in the example-docker repository would be helpful.