The variables in https://github.com/sclorg/nginx-container/blob/master/1.22/Dockerfile.fedora#L11..L15 are only used to set LABELS a fe lines below and should not "leak" inside the container images.
Using ARG instead of ENV will make those variables only available during the build and not built into the image default environment.
Note: This also applies to all other container images in this org. I'm only reporting this once.
See containers/docs#15