The code for my website built with jekyll.
Build:
docker build -t jekyll .
Run:
docker run --rm -p 4000:4000 --entrypoint bash jekyll -c \
'bundler exec jekyll serve -H 0.0.0.0 -P 4000'
For development with live reload:
docker run -it --rm -v $(pwd):/app -p 4000:4000 -p 35729:35729 --entrypoint bash jekyll -c \
'bundler exec jekyll serve -H 0.0.0.0 -P 4000 --livereload'
See the preview here.