Comment by trenchpilgrim
Comment by trenchpilgrim a day ago
If you are adding security keys and git repos to your final shipped image you are doing things very wrong - a container image is literally a tarball and some metadata about how to run the executables inside. Even if you need that data to build your application you should use a multi-stage build to include only the final artifacts in the image you ship.
For stuff like security keys you should typically add them as build --args-- secrets, not as content in the image.
> For stuff like security keys you should typically add them as build args, not as content in the image.
Build args are content in the image: https://docs.docker.com/reference/build-checks/secrets-used-...