Skip to content

Commit

Permalink
fix: Fix docker build by using nightly rust and not native cpu features
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Jun 16, 2023
1 parent bdf0a73 commit 8716a94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 8716a94

Please sign in to comment.