From febbfd89e6c647f11612721c3f8a1b4cc7fad9cc Mon Sep 17 00:00:00 2001 From: Alexander Medvedev Date: Thu, 26 Dec 2024 00:04:43 +0100 Subject: [PATCH] Remove `target-cpu=native` from Docker This can cause illegal instructions when using the public docker image build on the CI --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 760bc635..7fc54425 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM rust:1-alpine3.21 AS builder ARG GIT_VERSION=Docker ENV GIT_VERSION=$GIT_VERSION -ENV RUSTFLAGS="-C target-feature=-crt-static -C target-cpu=native" +ENV RUSTFLAGS="-C target-feature=-crt-static" RUN apk add --no-cache musl-dev WORKDIR /pumpkin