mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
d1c7c7fd9e
https://github.com/docker-library/repo-info/blob/master/repos/rust/tag-details.md#rust1420-slim-buster
23 lines
383 B
Docker
23 lines
383 B
Docker
FROM rust:1.42.0-slim-buster
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y clang cmake
|
|
RUN apt-get install -y libsnappy-dev
|
|
|
|
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
|