From 70b28d08b04b9f6c2e3d7457fed4e448d32f04d5 Mon Sep 17 00:00:00 2001 From: Eric Dobbs Date: Sun, 8 Oct 2023 13:24:55 -0600 Subject: [PATCH] add detail to README to explain benefits of --no-cache --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index ab2e43a..e399024 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,18 @@ docker push $IMAGE docker push dobbs/farm:latest ``` +Sometimes we publish a docker image with no changes to the wiki source +code. This allows us to pick up non-breaking changes to some of the +plugins. Using `--no-cache` ensures docker re-runs this line from the +`Dockerfile` in particular: `npm install -g --prefix . $WIKI_PACKAGE`. + +``` bash +docker build --no-cache --tag $IMAGE . # if you haven't already +docker build --tag dobbs/farm:latest . # if you haven't already +docker push $IMAGE +docker push dobbs/farm:latest +``` + ## Publish with updated wiki dependencies We published 1.0.16 on May 2. The friends security plugin was updated