--env is a podman-specific feature. While it is clear that podman is a requirement here, switching these to build arguments better expresses intent.
These values are meant to be configurable at build time, which is exactly what build arguments are for, while environment variables are meant to persist in the image built.
Additionally, this removes a couple of unused env vars.
--env is a podman-specific feature. While it is clear that podman is a requirement here, switching these to build arguments better expresses intent.
These values are meant to be configurable at build time, which is exactly what build arguments are for, while environment variables are meant to persist in the image built.
Additionally, this removes a couple of unused env vars.
rebased on master
Rebased on master
Brought back SOURCE_DATE_EPOCH which was mistakenly removed.
Simplifications.
Added back the necessary ARGs in the second build stage.
according to docs they need to be defined in every build stage: https://docs.docker.com/reference/dockerfile/#arg
Rebase, fix commit message.