Created
February 3, 2024 18:58
-
-
Save eKristensen/cb22a5018399c71a3cf99a584219a880 to your computer and use it in GitHub Desktop.
vigil aarch64 podman / docker build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/rustlang/rust:nightly-alpine AS build | |
RUN apk add --no-cache musl-dev perl make | |
RUN rustup --version | |
RUN rustup target add aarch64-unknown-linux-musl | |
RUN rustc --version && \ | |
rustup --version && \ | |
cargo --version | |
WORKDIR /app | |
COPY . /app | |
RUN cargo clean | |
RUN CFLAGS=-mno-outline-atomics cargo build --release --target aarch64-unknown-linux-musl | |
RUN strip ./target/aarch64-unknown-linux-musl/release/vigil | |
FROM docker.io/alpine:latest | |
WORKDIR /usr/src/vigil | |
COPY ./res/assets/ ./res/assets/ | |
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt | |
COPY --from=build /app/target/aarch64-unknown-linux-musl/release/vigil /usr/local/bin/vigil | |
CMD [ "vigil", "-c", "/etc/vigil.cfg" ] | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://doc.rust-lang.org/error_codes/E0635.html
The source code refers to an non exisiting feature. It must be upstream somewhere.
It looks like the feature has been removed from Rust: https://users.rust-lang.org/t/error-e0635-unknown-feature-stdsimd/106445/2
A hotfix could be to use stable Rust maybe?