From 7af96e605100c5743dc7f452993d2d7f978ca704 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Fri, 17 Feb 2023 17:29:16 +0100 Subject: [PATCH] Use `docker build --pull` instead of `docker image pull` --- docs/host-your-own.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/host-your-own.md b/docs/host-your-own.md index c11d67c..dff5b96 100644 --- a/docs/host-your-own.md +++ b/docs/host-your-own.md @@ -99,13 +99,11 @@ The easiest way to get PairDrop up and running is by using Docker. ### Build the image ```bash -docker image pull node:lts-alpine +docker build --pull . -f Dockerfile -t pairdrop ``` -> Prevents Docker from using an old `node:lts-alpine` image by pulling the latest -```bash -docker build . -f Dockerfile -t pairdrop -``` -> A GitHub action is set up to do this step automatically +> A GitHub action is set up to do this step automatically. +> +> `--pull` ensures always the latest node image is used. ### Run the image ```bash