Skip to content

About

Container image for Jekyll

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Container Image for Jekyll

Container image for Jekyll.

Usage

Create new site in the current directory.

docker run --rm -it -v ${PWD}:/srv/jekyll \
    ghcr.io/granito-source/jekyll:4.3.4 \
    jekyll new site
cd site

Install required gems.

docker run --rm -it \
    -v $PWD:/srv/jekyll \
    -v $PWD/vendor/bundle:/usr/local/bundle \
    ghcr.io/granito-source/jekyll:4.3.4 \
    bundle install

Periodically you can check for updated dependencies and update Gemfile.lock.

docker run --rm -it \
    -v $PWD:/srv/jekyll \
    -v $PWD/vendor/bundle:/usr/local/bundle \
    ghcr.io/granito-source/jekyll:4.3.4 \
    bundle update

Serve and author the site. The site will be available at http://localhost:4000/.

docker run --rm -it \
    -v $PWD:/srv/jekyll \
    -v $PWD/vendor/bundle:/usr/local/bundle \
    -p 4000:4000 \
    ghcr.io/granito-source/jekyll:4.3.4 \
    jekyll serve -H 0.0.0.0

Build the site.

docker run --rm -it \
    -v $PWD:/srv/jekyll \
    -v $PWD/vendor/bundle:/usr/local/bundle \
    ghcr.io/granito-source/jekyll:4.3.4 \
    jekyll build

About

Container image for Jekyll

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages