File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - ' *'
77 - ' !main'
88 paths-ignore :
9+ - .github/workflows
910 - ' **/*.md'
11+ - Dockerfile
1012 pull_request :
1113 branches : [ "*" ]
14+ paths-ignore :
15+ - .github/workflows
16+ - ' **/*.md'
17+ - Dockerfile
1218 workflow_dispatch :
1319
1420env :
2026 runs-on : ubuntu-latest
2127
2228 steps :
23- - uses : actions/checkout@v4
29+ - uses : actions/checkout@v6
2430 - name : Build
2531 run : cargo build --verbose
2632 - name : Run tests
Original file line number Diff line number Diff line change 1+ FROM rust:bookworm AS build
2+
3+ # Dependencies
4+ RUN USER=root apt-get update && apt-get upgrade -y
5+
6+ # Install the lastest version directly into path
7+ RUN cargo install btcnode-metrics --root /usr/local
8+
9+ # ####
10+ # Final base
11+ FROM debian:bookworm-slim
12+
13+ COPY --from=build /usr/local/bin/btcnode-metrics /usr/local/bin/btcnode-metrics
14+
15+ # copy the bin and config
16+ RUN mkdir /etc/btcnode-metrics
17+ COPY ./config.local.toml /etc/btcnode-metrics/config.toml
18+
19+ # expose the port identified in the config
20+ EXPOSE 9898
21+
22+ ENV RUST_LOG=info
23+
24+ CMD ["/usr/local/bin/btcnode-metrics" , "-c" , "/etc/btcnode-metrics/config.toml" ]
You can’t perform that action at this time.
0 commit comments