-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Showing
2 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM rust:1-slim-bookworm AS builder | ||
ADD Cargo.* . | ||
ADD src/* src/ | ||
RUN apt update && \ | ||
apt install -y libssl-dev pkg-config && \ | ||
cargo build --release && \ | ||
cp target/release/airnope /usr/local/bin && \ | ||
cargo clean && \ | ||
apt purge -y libssl-dev pkg-config && \ | ||
apt autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
FROM debian:bookworm-slim | ||
COPY --from=builder /usr/local/bin/airnope /usr/local/bin/airnope | ||
RUN apt update && \ | ||
apt install -y ca-certificates openssl && \ | ||
apt autoremove -y && \ | ||
rm -rf /var/lib/apt/lists/* | ||
CMD ["airnope"] | ||
|
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