Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 3 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,10 @@ COPY . .
RUN make juno

# --- Final stage ---
FROM debian:bookworm-slim AS final
FROM gcr.io/distroless/cc-debian12 AS final

RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
gawk \
grep \
libjemalloc-dev \
libjemalloc2 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/lib/*-linux-gnu/libjemalloc.so.2 /usr/lib/
ENV LD_LIBRARY_PATH=/usr/lib

COPY --from=builder /app/build/juno /usr/local/bin/

Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ services:
image: juno:latest
build: .
healthcheck:
test: ["CMD", "sleep", "4"]
test: ["CMD", "/usr/local/bin/juno", "--version"]
interval: 4s
timeout: 10s
retries: 1
start_period: 4s
networks:
p2p-network:
ipv4_address: 192.168.10.10
Expand Down
Loading