docker build -t pages-env .docker run --rm -it \
-p 4000:4000 \
-v "$(pwd)":/site \
-e JEKYLL_GITHUB_TOKEN=example_token \
pages-envBrowse to http://127.0.0.1:4000 after the container boots to view the site.
- Mounting the project directory (
-v "$(pwd)":/site) lets Jekyll pick up edits without rebuilding the image. - If you omit
JEKYLL_GITHUB_TOKEN, the page still builds but omits the repository list (and the template will show an info message instead). - Set
JEKYLL_GITHUB_TOKENto a personal access token (read-only scope) if you want thesite.githubrepository data to render locally; omit it to preview layout only.