1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-22 22:36:37 +01:00
electrs/Dockerfile

26 lines
459 B
Text
Raw Normal View History

FROM rust:1.44.1-slim-buster
2018-08-19 19:26:57 +03:00
2020-07-06 16:16:01 -04:00
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/*
2018-08-19 19:26:57 +03:00
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 install --path .
# Electrum RPC
EXPOSE 50001
# Prometheus monitoring
EXPOSE 4224
STOPSIGNAL SIGINT