mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 01:43:29 +01:00
25 lines
464 B
Docker
25 lines
464 B
Docker
FROM rust:1.44.1-slim-buster
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends clang=1:7.* cmake=3.* \
|
|
libsnappy-dev=1.* \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN adduser --disabled-login --system --shell /bin/false --uid 1000 user
|
|
|
|
USER user
|
|
WORKDIR /home/user
|
|
COPY ./ /home/user
|
|
|
|
RUN cargo build --release
|
|
RUN cargo install --path .
|
|
|
|
# Electrum RPC
|
|
EXPOSE 50001
|
|
|
|
# Prometheus monitoring
|
|
EXPOSE 4224
|
|
|
|
STOPSIGNAL SIGINT
|