Sign inSign up

imacatlol/hugo-nginx

By imacatlol

•Updated almost 7 years ago

Docker container for hosting websites generated by Hugo

Image
0

328

imacatlol/hugo-nginx repository overview

⁠Hugo NGinx

Docker container for hosting websites generated by Hugo

⁠Usage

Create a Dockerfile and copy everything into the NGinx public directory.

FROM imacatlol/hugo-nginx

COPY public/ /usr/share/nginx/html
⁠Build

Then build the docker image

docker build -t static-website .
⁠Run

Run the docker container

docker run --rm --name static-website -p 80:80 static-website

Tag summary

Content type

Image

Digest

Size

8.4 MB

Last updated

almost 7 years ago

docker pull imacatlol/hugo-nginx