Docker container for hosting websites generated by Hugo
328
Docker container for hosting websites generated by Hugo
Create a Dockerfile and copy everything into the NGinx public directory.
FROM imacatlol/hugo-nginx
COPY public/ /usr/share/nginx/html
Then build the docker image
docker build -t static-website .
Run the docker container
docker run --rm --name static-website -p 80:80 static-website
Content type
Image
Digest
Size
8.4 MB
Last updated
almost 7 years ago
docker pull imacatlol/hugo-nginx