diff --git a/docs/content/documentation/getting-started/installation.md b/docs/content/documentation/getting-started/installation.md index f6cd298f..5731ca29 100644 --- a/docs/content/documentation/getting-started/installation.md +++ b/docs/content/documentation/getting-started/installation.md @@ -70,6 +70,30 @@ Zola is available on snapcraft: $ snap install --edge zola ``` +### Docker + +Zola is available on [Docker Hub](https://hub.docker.com/r/balthek/zola). +It has no `latest` tag, you will need to specify a [specific version to pull](https://hub.docker.com/r/balthek/zola/tags). + +```sh +$ docker pull balthek/zola:0.13.0 +$ docker run balthek/zola:0.13.0 --version +``` + +#### Build + +```sh +$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app balthek/zola:0.13.0 build +``` + +#### Serve + +```sh +$ docker run -u "$(id -u):$(id -g)" -v $PWD:/app --workdir /app -p 8080:8080 balthek/zola:0.13.0 serve --interface 0.0.0.0 --port 8080 --base-url localhost +``` + +You can now browse http://localhost:8080. + ## Windows Zola is available on [Scoop](https://scoop.sh):