Remove target-cpu=native from Docker

This can cause illegal instructions when using the public docker image build on the CI
This commit is contained in:
Alexander Medvedev
2024-12-26 00:04:43 +01:00
committed by GitHub
parent e8deff519e
commit febbfd89e6

View File

@@ -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