Hugo executable for build, test, serve, for amd64, armv7 and arm64
6.2K
A Docker file to build Hugo, one of the most popular open-source static site generators for AMD & ARM devices over an alpine base image based.
Be aware! You should read carefully the usage documentation of every tool!
| Docker Hub | Docker Pulls | Docker Stars | Size/Layers |
|---|---|---|---|
| rpi-hugo |
Build for amd64, armv7l or arm64 architecture (thanks to its Multi-Arch base image)
docker build -t elswork/rpi-hugo .
In order everyone could take full advantages of the usage of this docker container, .I'll describe my own real usage setup. This guide asumes that you already have created a site, added a theme and added some content.
docker run -v /path/to/**parentfolder**:/src elswork/rpi-hugo new site **sitename**
docker run -v /path/to/**sitename**:/src elswork/rpi-hugo new post/2099-12-31-nuevo-articulo/index.md
docker run -p 1313:1313 -v /path/to/**sitename**:/src elswork/rpi-hugo server -b http://HostName.Or.IP/ --bind=0.0.0.0 -w
docker run --rm -v /path/to/**sitename**:/src --name HugoBuild elswork/rpi-hugo --cleanDestinationDir
Sponsor me! Together we will be unstoppable.
Content type
Image
Digest
Size
27.5 MB
Last updated
over 5 years ago
docker pull elswork/rpi-hugo