Specify user, workdir, ports and signal at Dockerfile
This commit is contained in:
parent
e9a6bd0986
commit
b1bec059a8
13
Dockerfile
13
Dockerfile
|
@ -5,4 +5,17 @@ RUN apt-get install -y clang cmake
|
||||||
|
|
||||||
RUN cargo install electrs
|
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"]
|
CMD ["electrs", "-vvvv", "--timestamp"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user