-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
22 lines (16 loc) · 1.2 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM tezedge/tezedge-bpf-builder:latest as builder
RUN apt install -y g++ git libssl-dev pkg-config libev-dev
RUN rustup update stable && rustup update nightly-2021-03-23
RUN cargo +stable install bpf-linker --git https://github.com/tezedge/bpf-linker.git --branch main
COPY . .
RUN cargo +stable build -p bpf-recorder --release && \
cargo +nightly-2021-03-23 build -p tezedge-recorder --release
FROM tezedge/tezedge-libs:latest-profile
COPY --from=builder /usr/local/cargo/git/checkouts/tezedge-*/*/tezos/sys/lib_tezos/artifacts/libtezos.so /usr/lib/x86_64-linux-gnu/libtezos.so
COPY --from=builder /usr/lib/x86_64-linux-gnu/libev.so.4 /usr/lib/x86_64-linux-gnu/libev.so.4
COPY --from=builder /usr/lib/x86_64-linux-gnu/libffi.so.7 /usr/lib/x86_64-linux-gnu/libffi.so.7
COPY --from=builder /usr/lib/x86_64-linux-gnu/libelf.so.1 /usr/lib/x86_64-linux-gnu/libelf.so.1
COPY --from=builder /lib/x86_64-linux-gnu/libz.so.1 /lib/x86_64-linux-gnu/libz.so.1
COPY --from=builder /home/appuser/target/none/release/bpf-recorder /usr/local/bin/bpf-recorder
COPY --from=builder /home/appuser/target/none/release/tezedge-recorder /usr/local/bin/tezedge-recorder
ENTRYPOINT [ "tezedge-recorder", "--run-bpf" ]