From 9b3ef317dd5e593ab345d1a8fc4ae43240268ad0 Mon Sep 17 00:00:00 2001 From: Dmitry Shurupov Date: Wed, 15 Jan 2025 16:25:03 +0700 Subject: [PATCH] Add make container-image to README instructions Signed-off-by: Dmitry Shurupov --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 82e70fe4f9f7e..e63dcf489f07f 100644 --- a/README.md +++ b/README.md @@ -52,9 +52,12 @@ To build the site in a container, run the following: ```bash # You can set $CONTAINER_ENGINE to the name of any Docker-like container tool +make container-image make container-serve ``` +The first command (`make container-image`) is required only for the first-time build OR if one of `Dockerfile`, `Makefile`, `package.json`, `package-lock.json` was changed. + If you see errors, it probably means that the hugo container did not have enough computing resources available. To solve it, increase the amount of allowed CPU and memory usage for Docker on your machine ([MacOS](https://docs.docker.com/desktop/settings/mac/) and [Windows](https://docs.docker.com/desktop/settings/windows/)). Open up your browser to to view the website. As you make changes to the source files, Hugo updates the website and forces a browser refresh.