summaryrefslogtreecommitdiffstats
path: root/docker/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'docker/README.md')
-rw-r--r--docker/README.md17
1 files changed, 17 insertions, 0 deletions
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 00000000..cfb4bab1
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,17 @@
+## Build
+To use `cross` to compile for Raspberry Pi you first need to build the docker image.
+Use these commands to build the images needed.
+
+**NOTE:** Run these commands inside the `docker` folder. This is needed since `docker`
+uses surrounding directories as "context" for building the image, which means it'll
+copy the entire `target` directory.
+
+### Raspberry Pi 2/3/4 (32 bits)
+```
+$ docker build -t iced-rs/armv7 -f Dockerfile.armv7-unknown-linux-gnueabihf .
+```
+
+### Raspberry Pi 3/4 (64 bits)
+```
+$ docker build -t iced-rs/aarch64 -f Dockerfile.aarch64-unknown-linux-gnu .
+``` \ No newline at end of file