Files
bitcoin-indexer/dockerfiles/components/bitcoin-indexer.dockerfile
Rafael Cárdenas fd2a8496e3 feat(runes): add runes indexer (#453)
* rename ordhook-cli to cli

* rename ordhook-cli

* update configs

* update config to future support runehook integration

* new code

* add ci

* files

* standard

* add files

* rename binary to bitcoin-indexer and commands to ordinals from ordhook

* config component

* integration

* runes build

* fix runes

* indexer toml

* add runes tests to ci

* rename dockerfile

* fix: doctest

---------

Co-authored-by: ASuciuX <asuciu@hiro.so>
2025-02-28 13:22:27 -06:00

29 lines
779 B
Docker

FROM rust:bullseye AS build
ARG GIT_COMMIT='0000000'
ENV GIT_COMMIT=${GIT_COMMIT}
WORKDIR /src
RUN apt-get update && apt-get install -y ca-certificates pkg-config libssl-dev libclang-11-dev libunwind-dev libunwind8 curl gnupg
RUN rustup update 1.81 && rustup default 1.81
RUN mkdir /out
COPY ./Cargo.toml /src/Cargo.toml
COPY ./Cargo.lock /src/Cargo.lock
COPY ./components /src/components
COPY ./migrations /src/migrations
RUN cargo build --features release --release
RUN cp /src/target/release/bitcoin-indexer /out
FROM debian:bullseye-slim
RUN apt-get update && apt-get install -y ca-certificates libssl-dev libclang-11-dev libunwind-dev libunwind8 sqlite3
COPY --from=build /out/bitcoin-indexer /bin/bitcoin-indexer
WORKDIR /workspace
ENTRYPOINT ["bitcoin-indexer"]