diff --git a/Dockerfile b/Dockerfile index 3aca11e3..5bdeef59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ RUN --mount=type=cache,target=/gomod-cache go mod download COPY . . RUN --mount=type=cache,target=/gomod-cache --mount=type=cache,target=/go-cache make build +FROM ghcr.io/blinklabs-io/cardano-cli:10.11.1.0-1 AS cardano-cli FROM ghcr.io/blinklabs-io/cardano-configs:20250812-1 AS cardano-configs FROM ghcr.io/blinklabs-io/mithril-client:0.12.11-1 AS mithril-client FROM ghcr.io/blinklabs-io/txtop:0.13.0 AS txtop @@ -16,11 +17,17 @@ FROM debian:bookworm-slim AS dingo RUN apt-get update -y && \ apt-get install -y \ ca-certificates \ + liblmdb0 \ libssl3 \ sqlite3 \ wget && \ rm -rf /var/lib/apt/lists/* +ENV LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH" +ENV PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" COPY --from=build /code/dingo /bin/ +COPY --from=cardano-cli /usr/local/bin/cardano-cli /usr/local/bin/ +COPY --from=cardano-cli /usr/local/include/ /usr/local/include/ +COPY --from=cardano-cli /usr/local/lib/ /usr/local/lib/ COPY --from=cardano-configs /config/ /opt/cardano/config/ COPY --from=mithril-client /bin/mithril-client /usr/local/bin/ COPY --from=txtop /bin/txtop /usr/local/bin/