crccheck / docker-hello-world

Hello World web server in under 2 MB
https://hub.docker.com/r/crccheck/hello-world/
161 stars 161 forks source link

Add port from environment variable #18

Closed stellarpower closed 3 years ago

stellarpower commented 3 years ago

Nice tiny image! In my podman setup I need to be able to assign each a different port, so this adds the option to run with a PORT environment variable, specifying the internal port to listen on.

crccheck commented 3 years ago

ah ok. I'm used to changing ports via port mapping so the EXPOSE can be picked up by other tooling, but I don't have a strong opinion about this

stellarpower commented 3 years ago

Cheers. :) I am too; Podman containers inside a pod run under the same network host, so they can't share ports and this image did the trick to test my ansible scripts.