diff options
author | Daniel <daniel.hub@outlook.de> | 2022-05-09 22:09:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-09 21:09:31 +0100 |
commit | 301190e42746fc03eb4cbef9bd6d080c4b8e23fd (patch) | |
tree | 21214be814cfaab9a19f94d0b00cc9d074810d92 /Dockerfile | |
parent | 1d030b9d32f539fd38f5ff3335234c5111c3303f (diff) |
Build ARM docker image in GitHub Actions using QEMU (#400)
This PR updates the GH Action docker workflow to crossbuild the docker
image for ARM using QEMU.
This theoratically works but takes about for a clean build 2.5 hours,
which may or may not be tolerable for each commit on `main`.
A action run where the dependencies are already cached needs about 15
minutes with this PR.
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,10 @@ COPY . . RUN cargo chef prepare --recipe-path recipe.json FROM chef AS builder + +# Ensure working C compile setup (not installed by default in arm64 images) +RUN apt update && apt install build-essential -y + COPY --from=planner /app/recipe.json recipe.json RUN cargo chef cook --release --recipe-path recipe.json |