-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5f756da4d2df59c69997925c69f651011def07bfbdbc582f492ecc19386eee7d79b9951732a792e6041da902d776052d6590cbd2d7004bc93c8406bcf9093fe6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ FROM python:3.9.12-alpine | |
ARG BUILD_DATE | ||
ARG VCS_REF | ||
ARG VERSION | ||
ARG CHECKSUM_SHA512 | ||
LABEL maintainer="[email protected]" \ | ||
org.label-schema.vendor="Distirbuted Solutions, Inc." \ | ||
org.label-schema.vendor="Boroda Group" \ | ||
org.label-schema.build-date=$BUILD_DATE \ | ||
org.label-schema.name="Electrum wallet (RPC enabled)" \ | ||
org.label-schema.description="Electrum wallet with JSON-RPC enabled (daemon mode)" \ | ||
|
@@ -21,16 +22,31 @@ ENV ELECTRUM_VERSION $VERSION | |
ENV ELECTRUM_USER electrum | ||
ENV ELECTRUM_PASSWORD electrumz # XXX: CHANGE REQUIRED! | ||
ENV ELECTRUM_HOME /home/$ELECTRUM_USER | ||
|
||
RUN apk --update-cache add --virtual build-dependencies gcc musl-dev && \ | ||
apk add libsecp256k1 && \ | ||
adduser -D $ELECTRUM_USER && \ | ||
pip3 install pycryptodomex https://download.electrum.org/${ELECTRUM_VERSION}/Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
apk del build-dependencies | ||
ENV ELECTRUM_NETWORK mainnet | ||
|
||
RUN mkdir -p /data ${ELECTRUM_HOME} && \ | ||
ln -sf /data ${ELECTRUM_HOME}/.electrum && \ | ||
chown ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum /data | ||
======= | ||
# IMPORTANT: always verify gpg signature before changing a hash here! | ||
ENV ELECTRUM_CHECKSUM_SHA512 $CHECKSUM_SHA512 | ||
|
||
RUN adduser -D $ELECTRUM_USER && \ | ||
apk --no-cache add --virtual build-dependencies gcc musl-dev libsecp256k1 && \ | ||
wget https://download.electrum.org/${ELECTRUM_VERSION}/Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
[ "${ELECTRUM_CHECKSUM_SHA512} Electrum-${ELECTRUM_VERSION}.tar.gz" = "$(sha512sum Electrum-${ELECTRUM_VERSION}.tar.gz)" ] && \ | ||
echo -e "**************************\n SHA 512 Checksum OK\n**************************" && \ | ||
pip3 install pycryptodomex Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
rm -f Electrum-${ELECTRUM_VERSION}.tar.gz && \ | ||
apk del build-dependencies | ||
|
||
RUN mkdir -p /data \ | ||
${ELECTRUM_HOME}/.electrum/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/testnet/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/regtest/wallets/ \ | ||
${ELECTRUM_HOME}/.electrum/simnet/wallets/ && \ | ||
ln -sf ${ELECTRUM_HOME}/.electrum/ /data && \ | ||
chown -R ${ELECTRUM_USER} ${ELECTRUM_HOME}/.electrum /data | ||
|
||
USER $ELECTRUM_USER | ||
WORKDIR $ELECTRUM_HOME | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters