I'm try to build a docker container managed by pan...
# general
f
I'm try to build a docker container managed by pants that I have not touch in a few months. The Dockerfile is very simple and I'm able to package the pex file referenced by the Dockerfile with no issues. When packaging the docker image I encounter the error below:
Copy code
Engine traceback:
  in `package` goal

ProcessExecutionFailure: Process 'Building docker image <http://ghcr.io/unique-image-name:latest|ghcr.io/unique-image-name:latest> +1 additional tag.' failed with exit code 1.
stdout:

/pants/backend/docker/goals/package_image.py", line 432, in build_docker_image
    raise ProcessExecutionFailure(
pants.engine.process.ProcessExecutionFailure: Process 'Building docker image <http://ghcr.io/onelive-dev/maergo-tracking-service:latest|ghcr.io/onelive-dev/maergo-tracking-service:latest> +1 additional tag.' failed with exit code 1.
stdout:

stderr:
ERROR: mkdir /home/runner: operation not supported
The Dockerfile below does not call mkdir. I'm not sure where this error is coming from or how to resolve it. Do I need to grant some permissions to the build system?
Copy code
FROM python:3.10-bullseye
COPY src.python.service/main.pex /bin
ENTRYPOINT ["/bin/main.pex"]
c
I do not recognize that error. Based on the
FROM
image you’re using, feels unlikely that it would be from any
ONBUILD
triggers. Can you try to build the image directly using the
docker
cli?
f
Yeah I think I'll need to change the COPY command. One sec
no issues building with the docker cli
I moved the pex files into the same directory and changed the copy command to
COPY ./main.pex /bin
The dockerfile doesn't do much at all