Containerfile -rw-r--r-- 384 B
1FROM alpine:3 AS build
2
3RUN apk add build-base cargo cmake clang17 clang17-libs clang17-libclang rust
4
5RUN cargo install --force --locked bindgen-cli
6
7WORKDIR /src
8
9COPY . /src
10
11RUN export PATH="/root/.cargo/bin:$PATH" && cargo test && cargo build --release
12
13FROM alpine:3
14
15RUN apk add libgcc
16
17COPY --from=build /src/target/release/maitred-debug /usr/bin/
18
19CMD /usr/bin/maitred-debug