Debian c45e1c48bc
Some checks failed
CI - 4NK_node / Code Quality (push) Failing after 31s
CI - 4NK_node / Unit Tests (push) Failing after 32s
CI - 4NK_node / Integration Tests (push) Failing after 13s
CI - 4NK_node / Security Tests (push) Failing after 28s
CI - 4NK_node / Docker Build & Test (push) Failing after 11s
CI - 4NK_node / Documentation Tests (push) Failing after 3s
CI - 4NK_node / Security Audit (push) Successful in 3s
CI - 4NK_node / Release Guard (push) Has been skipped
CI - 4NK_node / Performance Tests (push) Successful in 29s
CI - 4NK_node / Notify (push) Failing after 2s
CI - 4NK_node / Publish Release (push) Has been skipped
feat(stack): routes Nginx (/secure_id, storage health), RPC creds, relay auth fallback, build fixes
2025-09-02 14:19:42 +00:00

16 lines
494 B
Docker

FROM rust:1.75-alpine AS builder
WORKDIR /app
RUN apk add --no-cache musl-dev openssl-dev pkgconfig
COPY Cargo.toml ./
COPY src ./src
RUN cargo build --release
FROM alpine:3.19 AS runtime
WORKDIR /home/bitcoin
RUN adduser -D blindbit && \
mkdir -p /home/bitcoin/.bitcoin && chown -R blindbit:blindbit /home/bitcoin
COPY --from=builder /app/target/release/blindbit /usr/local/bin/blindbit
EXPOSE 8000
USER blindbit
CMD ["/usr/local/bin/blindbit", "--config", "/home/bitcoin/blindbit.toml"]