mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
22 lines
329 B
Docker
22 lines
329 B
Docker
FROM rust:latest
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y clang cmake
|
|
|
|
RUN cargo install electrs
|
|
|
|
RUN adduser --disabled-login --system --shell /bin/false --uid 1000 user
|
|
|
|
USER user
|
|
WORKDIR /home/user
|
|
|
|
# Electrum RPC
|
|
EXPOSE 50001
|
|
|
|
# Prometheus monitoring
|
|
EXPOSE 4224
|
|
|
|
STOPSIGNAL SIGINT
|
|
|
|
CMD ["electrs", "-vvvv", "--timestamp"]
|