Sign inSign up

elswork/rpi-hugo

By elswork

•Updated over 5 years ago

Hugo executable for build, test, serve, for amd64, armv7 and arm64

Image
1

7.9K

elswork/rpi-hugo repository overview

⁠Hugo

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!

⁠Details

Docker HubDocker PullsDocker StarsSize/Layers
rpi-hugo⁠

⁠Build Instructions

Build for amd64, armv7l or arm64 architecture (thanks to its Multi-Arch⁠ base image)

docker build -t elswork/rpi-hugo .

⁠Usage Example

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⁠.

⁠Create Site
docker run -v /path/to/**parentfolder**:/src elswork/rpi-hugo new site **sitename**
⁠Create Post
docker run -v /path/to/**sitename**:/src elswork/rpi-hugo new post/2099-12-31-nuevo-articulo/index.md
⁠Testing/Serving
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
⁠Build Site
docker run --rm -v /path/to/**sitename**:/src --name HugoBuild elswork/rpi-hugo --cleanDestinationDir

Sponsor me!⁠ Together we will be unstoppable.

Tag summary

Content type

Image

Digest

Size

27.5 MB

Last updated

over 5 years ago

docker pull elswork/rpi-hugo