Skip to content

Commit 3f854dd

Browse files
authored
fix: use arg for MAKEFLAGS for overriding (#412)
1 parent 2d1529a commit 3f854dd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

docker/zisk/Dockerfile.server

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ ARG RUSTFLAGS
1818
ARG CUDA_ARCHS=120
1919

2020
# proofman-starks-src reads /proc/cpuinfo to pick its SIMD flags, so a builder with AVX-512
21-
# produces an image that raises SIGILL on hosts without it. Pinning the baseline to AVX2 keeps
22-
# the published image runnable anywhere.
23-
ENV MAKEFLAGS="AVX512_SUPPORTED= AVX2_SUPPORTED=1"
21+
# produces an image that raises SIGILL on hosts without it. Disable the AVX-512 by default here.
22+
ARG MAKEFLAGS="AVX512_SUPPORTED="
2423

2524
RUN cargo build --release --package ere-server --bin ere-server --features zisk${CUDA:+,cuda} \
2625
&& mkdir bin && mv target/release/ere-server bin/ere-server \

0 commit comments

Comments
 (0)