Skip to content

Commit

Permalink
Specify user, workdir, ports and signal at Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Aug 20, 2018
1 parent e9a6bd0 commit b1bec05
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit b1bec05

Please sign in to comment.