white-jordan-40851
06/27/2023, 8:58 PMpython_source(
name="src",
source="__main__.py",
)
pex_binary(
name="pex",
dependencies=[
":src",
],
entry_point="__main__.py",
environment="docker_x86_64",
)
docker_image(
name="docker",
repository="test",
image_tags=["latest"],
source="Dockerfile",
)
which gives me the following error :
native_engine.IntrinsicError: Failed to make named cache(s) for local execution: "Failed to create parent directory for named cache in Docker container:
stdout:
stderr:
mkdir: cannot create directory '/pants-named-caches/pex_root': Permission denied
I can't really figure out how to overcome this, or if it's simply not a valid usecase. Has anyone else tried this ?wide-midnight-78598
06/27/2023, 9:05 PMbroad-processor-92400
06/27/2023, 9:56 PMwhite-jordan-40851
06/27/2023, 11:34 PMpants package
on the docker_file target.white-jordan-40851
06/27/2023, 11:37 PMHowever, is there an underlying problem just building the pex for Linux and copying it over in your docker build? That’s what I do right nowThis approach would not work for me, some of the dependencies have no built wheels available
jolly-engineer-48634
06/06/2025, 4:49 PMnutritious-sandwich-40059
08/19/2025, 3:31 PM