fix: update Dockerfile to rust:slim-bookworm, install libelf-dev in CI

This commit is contained in:
loki5512344 2026-07-21 16:08:33 +02:00
parent 705521ade9
commit e7631f918a
Signed by: boba
GPG key ID: 253067914055423B
2 changed files with 2 additions and 1 deletions

View file

@ -21,6 +21,7 @@ jobs:
with: with:
components: clippy, rustfmt components: clippy, rustfmt
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- run: sudo apt-get update && sudo apt-get install -y libelf-dev
- run: cargo fmt --all --check - run: cargo fmt --all --check
- run: cargo clippy --all-targets --all-features -- -D warnings - run: cargo clippy --all-targets --all-features -- -D warnings
- run: cargo check --all-features - run: cargo check --all-features

View file

@ -1,4 +1,4 @@
FROM rust:1.84-slim-bookworm AS builder FROM rust:slim-bookworm AS builder
RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y pkg-config libssl-dev && rm -rf /var/lib/apt/lists/*