https://pantsbuild.org/ logo
#general
Title
# general
m

modern-wolf-36228

11/26/2021, 12:54 PM
If I want to build a docker image with a wheel (considering that I use a custom version plugin), how would I copy that wheel?
Using
docker_image
(not sure if it was obvious)
c

curved-television-6568

11/26/2021, 1:26 PM
Add a dependency on the
python_distribution
from your
docker_image
, that should place your
.whl
in the docker build context for your image.
Currently, I’d recommend running
package
for the docker image with
--no-process-execution-local-cleanup
in order to figure out where that wheel is placed.
Oh, I assumed that you build that wheel, if it is a 3rdparty dep, I’m not really sure what the answer is…
not sure if it was obvious
I would’ve assumed so (so maybe obvious 😉 )
m

modern-wolf-36228

11/26/2021, 1:43 PM
I build that wheel.
👍 1
docker_image(name="n20", dependencies=["src/python/n20:wheel"])
But the wheel generated is something like
n20.<changes_frequently>.whl
nvm, it worked
🙌 1
thanks