From 49b6087d2154ee1eeabb5d1bfc1704895533df17 Mon Sep 17 00:00:00 2001 From: William Desportes Date: Wed, 3 Feb 2021 14:59:45 +0100 Subject: [PATCH] Document Docker Hub (#1337) --- .../getting-started/installation.md | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) 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):