esplora-tapyrus 0.4.1

An efficient re-implementation of Electrum Server in Rust
FROM rust:1.44.1-slim-buster

RUN apt-get update
RUN apt-get install -y clang cmake
RUN apt-get install -y libsnappy-dev git protobuf-compiler
RUN apt-get install -y m4

RUN adduser --disabled-login --system --shell /bin/false --uid 1000 user

WORKDIR /home/user
COPY ./ /home/user
RUN chown -R user .

USER user

RUN cargo build --release
RUN cargo install --path .

# Electrum RPC
EXPOSE 50001

# Prometheus monitoring
EXPOSE 4224

STOPSIGNAL SIGINT