mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 22:43:06 +08:00
* 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>
29 lines
779 B
Docker
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"]
|