2020-07-06 22:16:34 +02:00
|
|
|
FROM rust:1.44.1-slim-buster
|
2018-08-19 18:26:57 +02:00
|
|
|
|
2020-07-06 22:16:01 +02: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 18:26:57 +02:00
|
|
|
|
2018-08-20 18:27:23 +02:00
|
|
|
RUN adduser --disabled-login --system --shell /bin/false --uid 1000 user
|
|
|
|
|
|
|
|
USER user
|
|
|
|
WORKDIR /home/user
|
2019-03-02 20:36:13 +01:00
|
|
|
COPY ./ /home/user
|
|
|
|
|
|
|
|
RUN cargo build --release
|
|
|
|
RUN cargo install --path .
|
2018-08-20 18:27:23 +02:00
|
|
|
|
|
|
|
# Electrum RPC
|
|
|
|
EXPOSE 50001
|
|
|
|
|
|
|
|
# Prometheus monitoring
|
|
|
|
EXPOSE 4224
|
|
|
|
|
|
|
|
STOPSIGNAL SIGINT
|