wtanaka/alpine-uid-hugo
Run hugo as your own non-root user in the current directory
75
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 wtanaka/alpine-uid-hugo
To run hugo
in the current directory, use the included shell script
hugo
To run hugo server
:
./hugo server --bind 0.0.0.0
docker pull wtanaka/alpine-uid-hugo