hemenxyz / docker-nginx-static

Example project which builds a Docker image using Nginx to serve a static website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example: Docker Nginx Static Site Serving

This example shows how to build an Nginx Docker image which contains a static website.

  1. Install Docker
  2. Open a command line and cd into this directory
  3. Build the docker image with the command:
    • docker build -t docker-nginx-static .
  4. Run the docker image with the command:
    • docker run -p 80:80 --name my-docker-nginx-static docker-nginx-static
  5. Open a browser to:
  6. Enjoy the beautiful image!

Kevin Baynes - kevinbaynes.com

About

Example project which builds a Docker image using Nginx to serve a static website


Languages

Language:HTML 71.5%Language:Dockerfile 28.5%