2021-03-21 20:12:18 +01:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
MAINTAINER mempool.space developers
|
|
|
|
EXPOSE 50002
|
|
|
|
|
|
|
|
# runs as UID 1000 GID 1000 inside the container
|
|
|
|
|
|
|
|
ENV VERSION 4.0.9
|
2021-03-25 00:24:04 +01:00
|
|
|
RUN set -x \
|
|
|
|
&& apt-get update \
|
2021-03-21 20:12:18 +01:00
|
|
|
&& 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 \
|
2021-03-25 00:24:04 +01:00
|
|
|
&& 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 \
|
2021-03-21 20:12:18 +01:00
|
|
|
&& 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/* \
|
2021-03-25 00:24:04 +01:00
|
|
|
&& useradd -d /home/mempool -m mempool \
|
2021-03-21 20:12:18 +01:00
|
|
|
&& mkdir /electrum \
|
|
|
|
&& ln -s /electrum /home/mempool/.electrum \
|
|
|
|
&& chown mempool:mempool /electrum
|
|
|
|
|
|
|
|
USER mempool
|
|
|
|
ENV HOME /home/mempool
|
|
|
|
WORKDIR /home/mempool
|
|
|
|
VOLUME /electrum
|
|
|
|
|
|
|
|
CMD ["/usr/bin/xpra", "start", ":100", "--start-child=/usr/local/bin/electrum", "--bind-tcp=0.0.0.0:50002","--daemon=yes", "--notifications=no", "--mdns=no", "--pulseaudio=no", "--html=off", "--speaker=disabled", "--microphone=disabled", "--webcam=no", "--printing=no", "--dbus-launch=", "--exit-with-children"]
|
|
|
|
ENTRYPOINT ["electrum"]
|