From 22af71a6f8c04758099e692c1042f02a71b88a0c Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Mon, 13 Apr 2020 19:44:12 +0700 Subject: [PATCH] Add entrypoint to create a new wallet and start text GUI --- Dockerfile | 3 +++ entrypoint.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index f0d4eb5..1435b21 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,3 +14,6 @@ RUN git submodule update --init RUN apt-get install -y libsecp256k1-0 RUN python3 -m pip install --user . cryptography +ADD ./entrypoint.sh /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..f387b86 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +electrum="/electrum/run_electrum --portable" + +$electrum create +$electrum --gui text