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
- Host: GitHub
- URL: https://github.com/cfultz/hugo-nginx-docker
- Owner: cfultz
- License: cc0-1.0
- Created: 2023-12-05T18:50:55.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-06T14:21:44.000Z (over 2 years ago)
- Last Synced: 2026-03-03T22:38:57.439Z (4 months ago)
- Topics: docker, dockerfile, hugo, nginx
- Language: Shell
- Homepage: https://hub.docker.com/r/cfultz/hugo-nginx
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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.