We are using packer to build a container with a parent that includes an entrypoint. In the packer build we "reset" entrypoint with ENTRYPOINT []. Unfortunately the container is being committed with the entrypoint of the parent still in place.
Doing this in a Dockerfile gets rid of the entrypoint from parent:
This issue was originally opened by @saulfm08 in https://github.com/hashicorp/packer/issues/12529 and has been migrated to this repository. The original issue description is below.
We are using packer to build a container with a parent that includes an entrypoint. In the packer build we "reset" entrypoint with ENTRYPOINT []. Unfortunately the container is being committed with the entrypoint of the parent still in place.
Doing this in a Dockerfile gets rid of the entrypoint from parent:
While the same in packer version does not:
Packer version 1.9.2 Host platform MacOS Ventura
Gist of packer-entrypoint-build.log Gist of the simple script to reproduce the bug