mirror of
https://github.com/xzcrpw/blackwall.git
synced 2026-04-24 11:56:21 +02:00
16 lines
571 B
Text
Executable file
16 lines
571 B
Text
Executable file
# Blackwall eBPF programs — init container
|
|
# Builds the BPF object file with nightly + bpfel target
|
|
FROM rust:1.87-bookworm AS builder
|
|
RUN rustup toolchain install nightly \
|
|
&& rustup component add rust-src --toolchain nightly
|
|
WORKDIR /build
|
|
COPY . .
|
|
RUN cd blackwall-ebpf && \
|
|
cargo +nightly build \
|
|
--target bpfel-unknown-none \
|
|
-Z build-std=core \
|
|
--release
|
|
|
|
# Stage 2: Tiny image with just the BPF binary
|
|
FROM busybox:1.37
|
|
COPY --from=builder /build/target/bpfel-unknown-none/release/blackwall-ebpf /opt/blackwall/blackwall-ebpf
|