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/htmlThen build the docker image
docker build -t static-website .Run the docker container
docker run --rm --name static-website -p 80:80 static-website