Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Docker image for running the Eleventy static site generator in development and production.
Docker Eleventy is a Docker image that packages the Eleventy static site generator so you can build and serve sites without installing Node.js locally.
Docker Eleventy is a community-maintained Docker image published on Docker Hub as femtopixel/eleventy. It wraps the Eleventy static site generator, a flexible tool that compiles templates and content into plain HTML. The image accepts a mounted site directory and runs Eleventy commands, such as --serve for a local development server or --output=/app/_site/ for a production build. The image is multiarch, meaning it supports multiple CPU architectures, including ARM and x86.
docker run -p 8080:8080 -v /path/to/site:/app femtopixel/eleventy --serve starts a live-reloading development server on port 8080.--output=/app/_site/ generates the static site into the _site directory inside the container, which is written back to the mounted volume./app, so no copying files in or out is required.femtopixel/eleventy with releases automated by GitHub Release Notifier.--serve to preview changes with automatic reload at http://localhost:8080.--output=/app/_site/ to generate the static HTML output ready to upload to any host.The workflow uses Docker volume mounting. You run a docker run command that binds a local directory to the /app path inside the container. The container then executes Eleventy with the arguments you pass (e.g., --serve or --output=/app/_site/). The output appears in the mounted directory on your host.
Pros:
Cons:
The image is open source and available under a free and permissive license. The author asks for financial support through PayPal, Buy Me a Coffee, and Ko-fi to sustain development.
Yes, the image is published on Docker Hub and the source is available under a free and permissive license. You can pull and run it without paying. The author requests donations to support ongoing maintenance.
Use docker run --rm -v /path/to/your/site:/app --name eleventy -p 8080:8080 femtopixel/eleventy --serve and open your site at http://localhost:8080. Replace /path/to/your/site with the absolute path to your Eleventy project.
Run docker run --rm -v /path/to/your/site:/app --name eleventy femtopixel/eleventy --output=/app/_site/. The generated static files will appear in the _site folder inside your mounted site directory.
The repository states that as of 2021 there is no free support team. The project depends on community contributions and donations. For issues, you can open an issue on the GitHub repository.
