Skip to content

Commit

Permalink
build(docker): add txtop and cardano-configs (#301)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Gianelloni <[email protected]>
  • Loading branch information
wolf31o2 authored Dec 27, 2024
1 parent 5840b00 commit 19f4196
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 19f4196

Please sign in to comment.