This Dockerfile
builds a docker image that lets you run the hugo
static website generator inside docker, but with your non-root user
and in your current working directory.
To do this, you pass a UID and GID as environment variables from outside the container and mount the current directory inside the container.
To download: docker pull cliwrap/hugo
-
To run
hugo
in the current directory, use the included shell scripthugo
-
To run
hugo server
:./hugo server --bind 0.0.0.0