This example shows how to build an Nginx Docker image which contains a static website.
- Install Docker
- Open a command line and cd into this directory
- Build the docker image with the command:
- docker build -t docker-nginx-static .
- Run the docker image with the command:
- docker run -p 80:80 --name my-docker-nginx-static docker-nginx-static
- Open a browser to:
- Enjoy the beautiful image!