-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9cb679c
commit 4f03195
Showing
5 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Builds the project in a docker container This is used to test arm and x86 builds using github actions + docker. | ||
# This also requires us to declare all the dependencies in the dockerfile usful as documentation. | ||
FROM rust:bookworm AS builder | ||
# Install requirements for bindgen: https://rust-lang.github.io/rust-bindgen/requirements.html | ||
RUN apt update && apt install -y llvm-dev libclang-dev clang | ||
COPY . . | ||
RUN cargo build --release --example simple | ||
|
||
FROM debian:bookworm-slim | ||
COPY --from=builder /target/release/examples/simple /usr/local/bin/simple | ||
ENTRYPOINT ["/usr/local/bin/simple"] |