Skip to content

Commit

Permalink
Docker: Properly set the FEATURES ENV in the 2nd build stage
Browse files Browse the repository at this point in the history
See: moby/moby#37345

Fixes #48
  • Loading branch information
shesek committed Aug 16, 2020
1 parent cb5e9a9 commit 06047f4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Expand Up @@ -6,6 +6,7 @@ ARG FEATURES="electrum http webhooks track-spends"
RUN cargo install --locked --path . --no-default-features --features "$FEATURES"

FROM debian:buster-slim
ARG FEATURES="electrum http webhooks track-spends"
RUN echo $FEATURES | grep -v webhooks > /dev/null || (apt-get update && apt-get install -y libssl-dev)
COPY --from=builder /usr/local/cargo/bin/bwt /usr/local/bin/
ENTRYPOINT [ "bwt", "--bitcoind-dir", "/bitcoin" ]

0 comments on commit 06047f4

Please sign in to comment.