Doc: Add docker build instructions without git clone
authorElan Ruusamäe <redacted>
Fri, 1 May 2026 13:12:09 +0000 (16:12 +0300)
committerElan Ruusamäe <redacted>
Sun, 3 May 2026 19:40:39 +0000 (22:40 +0300)
Add instructions for building Docker image directly from GitHub.

readme_template.md

index 4c66936f6890935c1ee5135a4408c7c439b3f988..e9f3dfc476466da859c38f4c3712e99e7836ff62 100644 (file)
@@ -131,6 +131,12 @@ Build the Docker container from the root of this repo like this:
 docker build --no-cache . -t stevenblack-hosts
 ```
 
+Or without cloning (directly from GitHub):
+
+```sh
+docker build --no-cache https://github.com/StevenBlack/hosts.git -t stevenblack-hosts
+```
+
 Then run your command as such:
 
 ```sh
git clone https://git.99rst.org/PROJECT