Sign inSign up

cfultz/hugo-nginx

By cfultz

•Updated almost 3 years ago
Archived

A down and dirty, simple nginx container setup to host "/public/" from a Hugo deployment.

Image
0

188

cfultz/hugo-nginx repository overview

⁠Hugo nginx Docker

⁠You can find the deploy.sh and deploy-hub.sh scripts on my Github repository⁠

This Dockerfile was created to host my static Hugo⁠ website over at 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 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⁠ is licensed under the Creative Commons CC0 1.0⁠ License. All tools and other works utilized are licensed under their respective licenses and copyrights.

Tag summary

Content type

Image

Digest

sha256:92623c17d…

Size

5.1 MB

Last updated

almost 3 years ago

docker pull cfultz/hugo-nginx