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.
- Host: GitHub
- URL: https://github.com/emcorrales/docker-ubuntu-nginx-static-site
- Owner: emcorrales
- Created: 2019-06-05T03:05:43.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T04:05:23.000Z (about 7 years ago)
- Last Synced: 2024-12-29T12:16:10.593Z (over 1 year ago)
- Topics: docker, nginx, static-site, static-website, ubuntu
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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!
```