jimmyhoran / docker-hugo-npm

Docker base image that includes Hugo, npm and Pygments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker image derived from Alpine Linux that includes npm, Pygments and Hugo. Enables building Hugo-based static sites that may include npm as part of the workflow (scss, minification, etc). Usable with Bitbucket Pipelines and other automated deployment tools that support Docker.

The latest image is available at https://hub.docker.com/r/bpack/hugo-npm/ or simply execute docker pull bpack/hugo-npm.

  • make build - Builds the docker image.
  • make push - Publish the image.
  • make shell - Run a shell in the image.
  • make rmi - Force remove the image locally.

The default version of 'latest' for the image can be overridden for the purposes of tagging by specifying make VERSION=x.x.x build. The same would need to be done for the push target to upload the image.

Details on how I use this image can be found at https://www.benjaminpack.com/blog/hugo-site-automation.

About

Docker base image that includes Hugo, npm and Pygments

License:MIT License


Languages

Language:Makefile 100.0%