Building image
docker build -t blog .
Serve blog from root dir
docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 -it blog jekyll serve --incremental
Open browser at https://localhost:4000/
_drafts
Adding --drafts
it will serve *.markdown
files from _drafts
folder.
docker run --rm --volume="$PWD:/srv/jekyll" -p 4000:4000 -it blog jekyll serve --drafts --incremental
docker run --rm --volume="$PWD:/srv/jekyll" -it blog \
bundle exec htmlproofer ./_site \
--only-4xx \
--ignore_urls "/example.com/,/ws-na.amazon-adsystem.com/,/molpharm.aspetjournals.org/" \
--ignore-status-codes "403"
Open sourced under the MIT license.