diff --git a/docker/electrum/Dockerfile b/docker/electrum/Dockerfile index af5cfe0a0..b7af48989 100644 --- a/docker/electrum/Dockerfile +++ b/docker/electrum/Dockerfile @@ -5,18 +5,20 @@ EXPOSE 50002 # runs as UID 1000 GID 1000 inside the container ENV VERSION 4.0.9 -RUN apt-get update \ +RUN set -x \ + && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends gpg gpg-agent dirmngr \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wget xpra python3-pyqt5 python3-wheel python3-pip python3-setuptools libsecp256k1-0 libsecp256k1-dev python3-numpy python3-dev build-essential \ - && wget /tmp/Electrum-${VERSION}.tar.gz https://download.electrum.org/${VERSION}/Electrum-${VERSION}.tar.gz \ - && wget /tmp/Electrum-${VERSION}.tar.gz.asc https://download.electrum.org/${VERSION}/Electrum-${VERSION}.tar.gz.asc \ - && gpg --verify /tmp/Electrum-${VERSION}.tar.gz.asc \ + && wget -O /tmp/Electrum-${VERSION}.tar.gz https://download.electrum.org/${VERSION}/Electrum-${VERSION}.tar.gz \ + && wget -O /tmp/Electrum-${VERSION}.tar.gz.asc https://download.electrum.org/${VERSION}/Electrum-${VERSION}.tar.gz.asc \ + && gpg --keyserver keys.gnupg.net --recv-keys 6694D8DE7BE8EE5631BED9502BD5824B7F9470E6 \ + && gpg --verify /tmp/Electrum-${VERSION}.tar.gz.asc /tmp/Electrum-${VERSION}.tar.gz \ && pip3 install /tmp/Electrum-${VERSION}.tar.gz \ && test -f /usr/local/bin/electrum \ && rm -vrf /tmp/Electrum-${VERSION}.tar.gz /tmp/Electrum-${VERSION}.tar.gz.asc ${HOME}/.gnupg \ && apt-get purge --autoremove -y python3-wheel python3-pip python3-setuptools python3-dev build-essential libsecp256k1-dev curl gpg gpg-agent dirmngr \ && apt-get clean && rm -rf /var/lib/apt/lists/* \ - && useradd -d /home/mwmpool -m mempool \ + && useradd -d /home/mempool -m mempool \ && mkdir /electrum \ && ln -s /electrum /home/mempool/.electrum \ && chown mempool:mempool /electrum