Jekyll Docker is a software image that has Jekyll and many of it dependencies ready to use for you in an encapsulated format. It includes a default set of gems, different image types with different extra packages, and wrappers to make Jekyll run more smoothly from start to finish for most Jekyll users. If you would like to know more about Docker you can visit https://docker.com, and if you would like to know more about Jekyll, you can visit https://github.com/jekyll/jekyll

Docker-Compose

services:
  site:
    command: jekyll serve
    image: jekyll/jekyll:latest
    volumes:
      - $PWD:/srv/jekyll
      - $PWD/vendor/bundle:/usr/local/bundle
    ports:
      - 4000:4000
      - 35729:35729
      - 3000:3000
      -   80:4000

Usage

docker-compose run site jekyll new site
docker-compose run --service-ports site jekyll s
docker-compose run site bundle update
docker-compose run site jekyll b

Reference

jekyll-docker/README.md at master · envygeeks/jekyll-docker
https://github.com/envygeeks/jekyll-docker/blob/master/README.md

jekyll/jekyll: Jekyll is a blog-aware, static site generator in Ruby
https://github.com/jekyll/jekyll

jekyll | Transform your plain text into static websites and blogs
https://jekyllrb.com

Official Jekyll Docker Image
https://hub.docker.com/r/jekyll/jekyll/

打赏

Leave a Reply

Your email address will not be published. Required fields are marked *