From b1bec059a849465477bfb20a60350d270ba92bd6 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Mon, 20 Aug 2018 19:27:23 +0300 Subject: [PATCH] Specify user, workdir, ports and signal at Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Dockerfile b/Dockerfile index bd64380..6ba4934 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,17 @@ RUN apt-get install -y clang cmake RUN cargo install electrs +RUN adduser --disabled-login --system --shell /bin/false --uid 1000 user + +USER user +WORKDIR /home/user + +# Electrum RPC +EXPOSE 50001 + +# Prometheus monitoring +EXPOSE 4224 + +STOPSIGNAL SIGINT + CMD ["electrs", "-vvvv", "--timestamp"]