First example for Fun with Containers session. (Single container)
- Install Docker
- Build the image
docker build . -t image-name
- Run the container (internally, port 3000, but in your computer it's exposed as port 8080)
docker run -p 8080:3000 image-name
Browse to http://localhost:8080
Run the container with:
docker-compose up
Now any code change will be reflected immediately. Also, if you attach your IDE to port 5858 (sample included for Visual Studio Code), you can use the debugger against the code running inside the container.
Watch the changes in the Dockerfile for running the app as a limited user.