The docker image for building Chobble Template sites
Find a file
2025-04-22 20:00:03 +01:00
.yarn Add corepack enable command 2025-04-15 21:57:08 +01:00
.gitignore Add corepack enable command 2025-04-15 21:57:08 +01:00
build-and-push.sh Simpler script, add Nix shebang 2025-04-16 00:56:09 +00:00
Dockerfile Preinstall things with yarn 2025-04-22 20:00:03 +01:00
hosts Add hosts file 2025-04-20 22:30:07 +00:00
README.md Update README 2025-04-15 20:12:11 +01:00
test-client.sh Simpler script, add Nix shebang 2025-04-16 00:56:09 +00:00
test-template.sh Preinstall things with yarn 2025-04-22 20:00:03 +01:00

Eleventy Docker Image

A Node.js-based Docker image with Eleventy and supporting tools pre-installed.

Included Tools and Packages

  • Node.js (latest)
  • rsync
  • Eleventy and plugins:
    • @11ty/eleventy
    • @11ty/eleventy-img
    • @11ty/eleventy-navigation
    • @11ty/eleventy-plugin-rss
    • @11ty/eleventy-plugin-syntaxhighlight
  • Supporting packages:
    • fast-glob
    • jsdom
    • markdown-it
    • prettier
    • sass
    • @zachleat/heading-anchors

Building the Image

docker build -t chobble-builder .

Or use the provided build script:

./build-and-push.sh

Running the Image

docker run -it -v $(pwd):/workdir -w /workdir dockerstefn/chobble-builder

This mounts your current directory to /workdir in the container and sets it as the working directory.

How It Works

The Docker image:

  1. Uses the latest Node.js as its base
  2. Pre-installs Eleventy and other dependencies
  3. Uses an entrypoint script that symlinks the global node modules to your working directory
  4. Allows you to run Eleventy commands without installing dependencies locally

Image on Docker Hub

This image is available on Docker Hub as dockerstefn/chobble-builder.