git » chasquid » commit d823809

docker: Add instructions for cross-compiling

author Guiorgy
2025-08-02 17:53:28 UTC
committer Alberto Bertogli
2025-08-03 09:28:43 UTC
parent 2b9d1faabf5b1d74c2c27c09d105b63205fa8a3d

docker: Add instructions for cross-compiling

This patch adds instructions on how to cross-compile the Docker build.

https://github.com/albertito/chasquid/pull/67

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Adjusted commit message.

docker/README.md +5 -0

diff --git a/docker/README.md b/docker/README.md
index 38c7cb0..75412ec 100644
--- a/docker/README.md
+++ b/docker/README.md
@@ -26,6 +26,11 @@ If, instead, you want to build the image yourself, just run:
 $ docker build -t chasquid -f docker/Dockerfile .
 ```
 
+Or, if you are cross-compiling for a different architecture, e.g. `arm64`:
+
+```sh
+$ docker build --platform=linux/arm64 -t chasquid -f docker/Dockerfile .
+```
 
 ## Running