1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-24 23:08:39 +01:00
electrs/Dockerfile

23 lines
376 B
Text
Raw Normal View History

2019-04-30 20:36:16 +03:00
FROM rust:1.34.0-slim
2018-08-19 19:26:57 +03:00
RUN apt-get update
RUN apt-get install -y clang cmake
RUN apt-get install -y libsnappy-dev
2018-08-19 19:26:57 +03:00
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