Sign inSign up

bocan/hugo

By bocan

•Updated 3 months ago

An image of Hugo Extended. The source is at https://github.com/bocan/odin-hugo

Buildkit cache
Image
Content management system
0

2.7K

bocan/hugo repository overview

ci

⁠About

This is a Dockerfile and a Github Action used to build a custom docker image of Hugo⁠ for my purely Docker powered web stack.

⁠Hugo Overview

Hugo is a static site generator⁠ written in Go⁠, optimized for speed and designed for flexibility. With its advanced templating system and fast asset pipelines, Hugo renders a complete site in seconds, often less.

Due to its flexible framework, multilingual support, and powerful taxonomy system, Hugo is widely used to create:

  • Corporate, government, nonprofit, education, news, event, and project sites
  • Documentation sites
  • Image portfolios
  • Landing pages
  • Business, professional, and personal blogs
  • Resumes and CVs

Use Hugo's embedded web server during development to instantly see changes to content, structure, behavior, and presentation. Then deploy the site to your host, or push changes to your Git provider for automated builds and deployment.

Hugo's fast asset pipelines include:

  • Image processing – Convert, resize, crop, rotate, adjust colors, apply filters, overlay text and images, and extract EXIF data
  • JavaScript bundling – Transpile TypeScript and JSX to JavaScript, bundle, tree shake, minify, create source maps, and perform SRI hashing.
  • Sass processing – Transpile Sass to CSS, bundle, tree shake, minify, create source maps, perform SRI hashing, and integrate with PostCSS
  • Tailwind CSS processing – Compile Tailwind CSS utility classes into standard CSS, bundle, tree shake, optimize, minify, perform SRI hashing, and integrate with PostCSS

And with Hugo Modules⁠, you can share content, assets, data, translations, themes, templates, and configuration with other projects via public or private Git repositories.

See the features⁠ section of the documentation for a comprehensive summary of Hugo's capabilities.

⁠About this Docker Build

This image builds the standard (non-extended) edition of Hugo from source, as a fully static Go binary. The extended edition only adds WebP encoding and the embedded LibSass transpiler, neither of which my site uses.

I've based this Docker build from the work of @jakejarvis⁠ and his Dockerfile⁠, heavily slimmed down. The final Alpine Linux container includes just Hugo, git, tzdata, and CA certificates.

Tag summary

Content type

Image

Digest

sha256:7b64e17a6…

Size

43.4 MB

Last updated

3 months ago

docker pull bocan/hugo