Skip to content

Instantly share code, notes, and snippets.

@jsoendermann
Last active August 24, 2020 17:11
Show Gist options
  • Save jsoendermann/1571311e4bc5d5c947f1145047621743 to your computer and use it in GitHub Desktop.
Save jsoendermann/1571311e4bc5d5c947f1145047621743 to your computer and use it in GitHub Desktop.
Running jekyll inside docker
docker run \
--rm \
-it \
--volume="$PWD:/srv/jekyll" \
--volume="$PWD/vendor/bundle:/usr/local/bundle" \
-p 8080:8080 \
-p 35729:35729 \
--env JEKYLL_ENV=production \
jekyll/jekyll:3.8 \
jekyll serve --watch --livereload --port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment