From 8716a945b2a0fbea2ebffdcdee4135fc1e610db5 Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Fri, 16 Jun 2023 21:00:19 +0200 Subject: [PATCH] fix: Fix docker build by using nightly rust and not native cpu features --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 19e7c73..a3720c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ COPY Arial.ttf . RUN apt-get update && \ apt-get install -y clang libvncserver-dev && \ rm -rf /var/lib/apt/lists/* -RUN cargo install --path . +RUN rustup toolchain install nightly +# We don't want to e.g. set "-C target-cpu=native", so that the binary should run everywhere +RUN RUSTFLAGS='' cargo +nightly install --path . FROM debian:bullseye-slim RUN apt-get update && \