/docker-hugo

Docker for gohugo.io

Primary LanguageShell

docker-hugo (gohugo.io)

An Image for Hugo (gohugo.io) based in Alpine Linux

Run + bash (temporary with permissions)

mkdir -p ~/blogs && cd ~/blogs
docker run --rm -it -u $(id -u):$(id -g) -v $(pwd):/tmp/source jansanchez/docker-hugo sh

Create our site called 'demo'

hugo new site demo
cd demo

If you want your Own Build

Clone repository

git clone git@github.com:jansanchez/docker-hugo.git

Build

docker build -t jansanchez/docker-hugo .