mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 22:43:06 +08:00
working dockerfile
This commit is contained in:
@@ -3,13 +3,13 @@ FROM rust:bullseye as build
|
||||
WORKDIR /src
|
||||
RUN apt update && apt install -y ca-certificates pkg-config libssl-dev libclang-11-dev
|
||||
RUN rustup update 1.67.0 && rustup default 1.67.0
|
||||
COPY ./components/ordhook-cli /src/components/ordhook-cli
|
||||
COPY ./components /src/components
|
||||
WORKDIR /src/components/ordhook-cli
|
||||
RUN mkdir /out
|
||||
RUN cargo build --features release --release
|
||||
RUN cp target/release/ordhook /out
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
FROM rust:slim-bullseye
|
||||
RUN apt update && apt install -y ca-certificates libssl-dev
|
||||
COPY --from=build /out/ /bin/
|
||||
WORKDIR /workspace
|
||||
|
||||
Reference in New Issue
Block a user