Using Dockerfile to Expose Ports - Linux Hint
linuxhint.com › dockerfile_expose_portsUsing Dockerfile to Expose Ports It is really easy to create a custom Docker image from existing Docker images using Dockerfile. Usually people uses a minimal base image such as alpine or ubuntu/debian for that purpose. Let’s say, you want to create a custom Docker image of your favorite web app written in NodeJS. The app will run on port 8080.