Skip to content

0xC45/zola-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

zola-docker

This is a Docker image that contains the Zola binary (https://www.getzola.org/). It can be used for development and/or CI/CD workflows.

Example Usage

  1. Build docker image
    docker build -t zola:v0.12.2 .
  2. Build site
    cd /my/zola/site/
    PROJECT_ROOT="$(git rev-parse --show-toplevel)" && \
    docker run \
      --rm \
      -it \
      -u $(id -u ${USER}):$(id -g ${USER}) \
      -v "${PROJECT_ROOT}:/site" \
      zola:v0.12.2 \
      bash -c 'cd /site && zola build -o docs'
  3. Serve site (for local development)
    cd /my/zola/site/
    PROJECT_ROOT="$(git rev-parse --show-toplevel)" && \
    docker run \
      --rm \
      -it \
      -u $(id -u ${USER}):$(id -g ${USER}) \
      -v "${PROJECT_ROOT}:/site" \
      -p 127.0.0.1:1111:1111 \
      zola:v0.12.2 \
      bash -c 'cd /site && zola serve -i 0.0.0.0'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published