Container handles Ruby and Jekyll dependencies so you don't have to
- Build image
docker build -t icspark-jekyll .- Run container
docker run --rm -v "$(pwd):/app" -p 4000:4000 icspark-jekyllThe site will be available at http://localhost:4000
The container will launch the Jekyll server in live reload mode, the -v flag mounts the current directory, so any
changes made will be reflected on the server.
Preqs
- Ruby 3.x
- Bundler 4.x
- Install dependencies
bundle install- Deploy Site
bundle exec jekyll serveFor live reloading, run the following instead:
bundle exec jekyll serve --livereloadThe site will be available at http://localhost:4000