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

https://github.com/cfultz/hugo-nginx-docker

Dockerfile to create an nginx container to be used with the static site generator Hugo
https://github.com/cfultz/hugo-nginx-docker

docker dockerfile hugo nginx

Last synced: 3 months ago
JSON representation

Dockerfile to create an nginx container to be used with the static site generator Hugo

Awesome Lists containing this project

README

          

# Hugo nginx Docker

This ``Dockerfile`` was created to host my static [Hugo](https://gohugo.io) website over at [CFultz.pro](https://cfultz.pro) to be a proof of concept that I could do it.

I have attached my ``deploy.sh`` that I used as well to create my site, build the image and deploy it to my local ``Docker`` environment.

## Build

``Note: you will need to have Docker and Hugo already installed``

In your Hugo website directory, process the following:

```
git clone https://github.com/cfultz/hugo-nginx-docker.git
chmod +x deploy.sh
./deploy.sh
```

## Using the pre-built from DockerHub

``Note: you will need to have Docker and Hugo already installed``

This will pull the latest pre-compiled container from [Docker Hub](https://hub.docker.com/r/cfultz/hugo-nginx) In your Hugo website directory, process the following:

```
git clone https://github.com/cfultz/hugo-nginx-docker.git
chmod +x deploy-hub.sh
./deploy-hub.sh
```

## License
This work by Caleb Fultz aka [cfultz](https://github.com/cfultz) is licensed under the [``Creative Commons CC0 1.0``](https://creativecommons.org/publicdomain/zero/1.0/legalcode.en) License. All tools and other works utilized are licensed under their respective licenses and copyrights.