I containerized the Second Crack static-file blog engine project using Alpine Linux v3.9.
Second Crack requires PHP 5.3+ and was tested on Mac OS X and CentOS 5.5, with Apache HTTPd. I dockerized the blog using Alpine Linux (v3.9) for the base OS image and added NGINX. You can build and deploy the image anywhere Docker is supported.
The docker image contain all PHP dependencies.
$ docker build -t secondcrack:<version> .
$ docker run -i -t -v <local secondcrack path>:/home/secondcrack -p 80:80 secondcrack:<version>
I prefer to use NGINX over Apache HTTPd.
This modified version of SecondCrack will leverage NGINX reverse proxy, inotify-tools, and supervisord to automatically monitor your Second Crack's path for any changes including in drafts/*
folder. This way, once a file is added or changed it will automatically update the site.