The docker image for building Chobble Template sites
| .yarn | ||
| .gitignore | ||
| build-and-push.sh | ||
| Dockerfile | ||
| hosts | ||
| README.md | ||
| test-client.sh | ||
| test-template.sh | ||
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:
- Uses the latest Node.js as its base
- Pre-installs Eleventy and other dependencies
- Uses an entrypoint script that symlinks the global node modules to your working directory
- 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.