An open API service indexing awesome lists of open source software.

https://github.com/emcorrales/docker-ubuntu-nginx-static-site

An example on how to host a simple static website using Nginx on a Ubuntu Docker image.
https://github.com/emcorrales/docker-ubuntu-nginx-static-site

docker nginx static-site static-website ubuntu

Last synced: about 1 month ago
JSON representation

An example on how to host a simple static website using Nginx on a Ubuntu Docker image.

Awesome Lists containing this project

README

          

# docker-ubuntu-nginx-static-site
An example on how to host a simple static website using Nginx on a Ubuntu Docker image.

Build the image.
```bash
docker build --tag=example.com .
```

Run the container.
```bash
docker run -d --add-host example.com:127.0.0.1 --name wakoko -p 80:80 example.com
```

Check if running.
```bash
$ curl localhost

Hello World!


```