Skip to content

Commit

Permalink
Remove target-cpu=native from Docker
Browse files Browse the repository at this point in the history
This can cause illegal instructions when using the public docker image build on the CI
  • Loading branch information
Snowiiii authored Dec 25, 2024
1 parent e8deff5 commit febbfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit febbfd8

Please sign in to comment.