You can use this image just as a platform-agnostic replacement for the
To use the image, first build it locally:
docker build -t middleman .
run the image to access the newly created binary. For instance, here's how we could
middleman help command:
docker run --rm middleman --help
You can also have the container run commands that influence your local host. For instance,
here's how you create a new middleman site in a local
docker run --rm -v project:/project:rw -w /project middleman init
Want to rebuild your project? You can do that too!
docker run --rm -v project:/project:rw -w /project middleman build
How about watching the project for changes? Done!
docker run --rm -v project:/project:rw -w /project middleman serve
Now you can hit up your local Docker host over port 80 and behold- the web app!