Docker images for generating sites with Jekyll
275
Docker images for generating sites with Jekyll
Images doesn't directly contain Jekyll. It must be provided through a gem local to your project. So, workspace must be mounted with your "identity" to /data:
# Update gems
docker run --rm -ti -v "$(pwd):/data" -u "$(id -u)" loganmzz/jekyll bundle install
# Buid site
docker run --rm -ti -v "$(pwd):/data" -u "$(id -u)" loganmzz/jekyll bundle exec jekyll build
# Serve
docker run --rm -ti -v "$(pwd):/data" -u "$(id -u)" -p 4000:4000 loganmzz/jekyll bundle exec jekyll serve -H 0.0.0.0
Tags don't match with component version. Instead here is the version matrix:
| Image tag | Ruby | Bundler | Node.js |
|---|---|---|---|
| latest | 2.5.0 | 1.16.1 | 9.5.0 |
| 1.0.0 | 2.5.0 | 1.16.1 | 9.5.0 |
Content type
Image
Digest
Size
354.2 MB
Last updated
over 8 years ago
docker pull loganmzz/jekyll