The Dockerfile follows the below steps to build the image:
Use ubuntu as the OS for the container.
Update the repositories.
Install the curl command.
Install some useful resources for adding/removing PPAs.
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
Install the PPA.
Install nodejs.
Verifies node version.
Verifies npm version.
Copies the express app to opt directory of ubuntu.
Runs the node app.
docker build express-docker-example
docker run -p 3001:3000 e63aa8460320