From 19f41966a2daf3c52ecd62e41f6a68cb7166a02b Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Fri, 27 Dec 2024 11:56:27 -0500 Subject: [PATCH] build(docker): add txtop and cardano-configs (#301) Signed-off-by: Chris Gianelloni --- Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fda3315..1799873 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,11 +6,20 @@ RUN go mod download COPY . . RUN make build +FROM ghcr.io/blinklabs-io/cardano-configs:20241028-1 AS cardano-configs +FROM ghcr.io/blinklabs-io/txtop:0.12.0 AS txtop + FROM debian:bookworm-slim AS dingo COPY --from=build /code/dingo /bin/ -COPY ./configs/cardano /opt/cardano/config +COPY --from=cardano-configs /config/ /opt/cardano/config/ +COPY --from=txtop /bin/txtop /usr/local/bin/ ENV CARDANO_CONFIG=/opt/cardano/config/preview/config.json +ENV CARDANO_NETWORK=preview # Create database dir owned by container user VOLUME /data/db ENV CARDANO_DATABASE_PATH=/data/db +# Create socket dir owned by container user +VOLUME /ipc +ENV CARDANO_NODE_SOCKET_PATH=/ipc/dingo.socket +ENV CARDANO_SOCKET_PATH=/ipc/dingo.socket ENTRYPOINT ["dingo"]