mirror of
https://github.com/alexgo-io/bitcoin-indexer.git
synced 2026-01-12 16:52:57 +08:00
use existin dockerfile
This commit is contained in:
1
.github/workflows/ci.yaml
vendored
1
.github/workflows/ci.yaml
vendored
@@ -72,5 +72,6 @@ jobs:
|
||||
context: .
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
file: ./dockerfiles/components/ordhook.dockerfile
|
||||
# Only push if (there's a new release on main branch, or if building a non-main branch) and (Only run on non-PR events or only PRs that aren't from forks)
|
||||
push: ${{ (github.ref != 'refs/heads/master' || steps.semantic.outputs.new_release_version != '') && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
|
||||
17
Dockerfile
17
Dockerfile
@@ -1,17 +0,0 @@
|
||||
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 /src/components
|
||||
WORKDIR /src/components/ordhook-cli
|
||||
RUN mkdir /out
|
||||
RUN cargo build --features release --release
|
||||
RUN cp target/release/ordhook /out
|
||||
|
||||
FROM rust:slim-bullseye
|
||||
RUN apt update && apt install -y ca-certificates libssl-dev
|
||||
COPY --from=build /out/ /bin/
|
||||
WORKDIR /workspace
|
||||
|
||||
ENTRYPOINT ["ordhook"]
|
||||
Reference in New Issue
Block a user