Skip to content

Commit 2cbea59

Browse files
authored
Merge pull request #44 from NillionNetwork/chore/keeper-docker
chore: package keeper as docker image
2 parents 235e2e2 + a7801a6 commit 2cbea59

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/docker.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
matrix:
2121
target:
2222
- blacklight_node
23+
- keeper
2324
steps:
2425
- name: Checkout
2526
uses: actions/checkout@v4

docker/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Multi-stage Dockerfile for blacklight project with cross-compilation support
2-
# Builds all binaries: blacklight_node, nilcc_simulator, monitor
2+
# Builds all binaries: blacklight_node, nilcc_simulator, monitor, keeper
33

44
FROM --platform=$BUILDPLATFORM rust:1.91-slim-trixie AS builder
55

@@ -79,7 +79,8 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
7979
mkdir -p /out/bin && \
8080
cp target/$RUST_TARGET/release/blacklight_node /out/bin/ && \
8181
cp target/$RUST_TARGET/release/nilcc_simulator /out/bin/ && \
82-
cp target/$RUST_TARGET/release/monitor /out/bin/
82+
cp target/$RUST_TARGET/release/monitor /out/bin/ && \
83+
cp target/$RUST_TARGET/release/keeper /out/bin/
8384

8485

8586
FROM --platform=$TARGETPLATFORM debian:bookworm-slim AS base_release
@@ -117,3 +118,8 @@ FROM base_release AS monitor
117118
COPY --from=builder /out/bin/monitor /usr/local/bin/monitor
118119
ENTRYPOINT ["/usr/local/bin/monitor"]
119120

121+
# Runtime stage for keeper
122+
FROM base_release AS keeper
123+
COPY --from=builder /out/bin/keeper /usr/local/bin/keeper
124+
ENTRYPOINT ["/usr/local/bin/keeper"]
125+

0 commit comments

Comments
 (0)