1
0
Fork 0
mirror of https://github.com/romanz/electrs.git synced 2025-02-23 14:50:45 +01:00
electrs/Dockerfile
Roman Zeyde bb8baf4108
Update Dockerfile to install libsnappy-dev and to use current source code
Also, update Docker usage documentation.
2019-03-03 22:34:39 +02:00

22 lines
376 B
Docker

FROM rust:1.33.0-slim
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