Jekyll 4.4.1
128
A Docker image for building and serving Jekyll sites, based on the official ruby:3.4.6-trixieβ image.
git, curl, ssh, nano, htop, wget, unzipbuild-essential, zlib1g-dev, ca-certificates, lsb-release, apt-transport-httpsπ Image size: ~1.19 GB β±οΈ Build time: ~5 minutes
Hereβs a sample docker-compose.yml to run your Jekyll project:
version: "3.9"
services:
jekyll:
image: minhng/jekyll:4.4.1
container_name: jekyll_server
# Mount your Jekyll project
volumes:
- ./myblog:/srv/jekyll
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
working_dir: /srv/jekyll
# Run Jekyll server
command: >
bash -c "bundle install --gemfile=Gemfile &&
jekyll serve --host 0.0.0.0 --port 4000 --watch"
ports:
- "4000:4000"
restart: unless-stopped
Place your Jekyll project inside ./myblog
Start the container:
docker compose up -d
Open http://localhost:4000β in your browser to preview your site.
./myblog to your own Jekyll project directory.command: to fit your needs (e.g., build only: jekyll build).Content type
Image
Digest
sha256:325bc75f2β¦
Size
445.5 MB
Last updated
about 1 year ago
docker pull minhng/jekyll:4.4.1