Skip to content

Commit bac4d97

Browse files
committed
feat: add curl for healthchecks
1 parent fcdb125 commit bac4d97

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ COPY src ./src
1414
RUN cargo build --release
1515

1616
FROM debian:trixie-slim AS runtime
17+
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates && rm -rf /var/lib/apt/lists/*
18+
1719
COPY --from=builder /usr/src/rpcproxy/target/release/rpcproxy /usr/local/bin/rpcproxy
1820

1921
USER nobody
2022
EXPOSE 9000
2123

2224
HEALTHCHECK --interval=15s --timeout=5s --start-period=30s --retries=3 \
23-
CMD wget -qO- http://localhost:9000/health || exit 1
25+
CMD curl -sf http://localhost:9000/health || exit 1
2426

2527
ENTRYPOINT ["rpcproxy"]

0 commit comments

Comments
 (0)