Add environment variable to provide custom port when using Cloud Native Buildpacks.
One of our customers is building Docker images using the default cloud native buildpacks. However, our implementation is using a hard coded port (port 5000): https://gitlab.com/gitlab-org/cluster-integration/auto-build-image/-/blob/master/src/cnb.Dockerfile
This is causing problems for them, and it would be better to provide the port as an environment variable. We can set the default to 5000
to prevent breaking the pipelines for others that uses the default configuration.
Edited by Julian Paul Dasmarinas