Ruby/Bundler/Middleman Docker image for generating static websites, based on Alpine Linux.
While being at the root of your Middleman project (where you would normally run middleman
), run any middleman
command, for example:
# middleman build
docker run --rm -v $(pwd):/src zeroplusx/middleman build
# middleman server + open localhost URL in your browser when ready
docker run --rm -p 4567:4567 -v $(pwd):/src zeroplusx/middleman server | awk '/View your site at/ {system("open http://localhost:4567")}'
When you are done, just press CTRL+C
and it will close and remove the Docker container.
- Sebastian Mandrean (sebastian@0x.se)