Describe the Problem
The ASPNETCORE_HTTP_PORTS environment variable is currently defined in the runtime-deps Dockerfile (e.g., src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile). This is not ideal because consumers of the runtime-deps image may not be using ASP.NET Core, so including this environment variable in a base image can be confusing or misleading.
Describe the Solution
It would be more appropriate to define ASPNETCORE_HTTP_PORTS only in Dockerfiles intended specifically for ASP.NET or ASP.NET Core. This will improve the clarity and generality of the runtime-deps image by not including env variables that don't apply to all consumers.
Additional Context
Reference: src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile#L7
Describe the Problem
The
ASPNETCORE_HTTP_PORTSenvironment variable is currently defined in the runtime-deps Dockerfile (e.g.,src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile). This is not ideal because consumers of the runtime-deps image may not be using ASP.NET Core, so including this environment variable in a base image can be confusing or misleading.Describe the Solution
It would be more appropriate to define
ASPNETCORE_HTTP_PORTSonly in Dockerfiles intended specifically for ASP.NET or ASP.NET Core. This will improve the clarity and generality of the runtime-deps image by not including env variables that don't apply to all consumers.Additional Context
Reference: src/runtime-deps/11.0/alpine3.23/amd64/Dockerfile#L7