Skip to content

Commit

Permalink
update to v1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peerchemist committed Oct 11, 2019
1 parent 8520a14 commit 739bdb1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile
@@ -1,8 +1,8 @@
FROM python:3.7-alpine3.7
FROM python:3.7-alpine3.10
LABEL maintainer="The Peerchemist <peerchemist@protonmail.ch>"
# based on work by lukechilds, https://github.com/lukechilds/docker-electrumx/blob/master/bin/init
# based on work by lukechilds, https://github.com/lukechilds/docker-electrumx/

ENV _VERSION=1.12.0
ENV _VERSION=1.13.0

COPY ./bin /usr/local/bin
RUN wget -q -O electrumx.tar.gz https://github.com/kyuupichan/electrumx/archive/${_VERSION}.tar.gz
Expand All @@ -11,19 +11,23 @@ RUN tar -xzf electrumx.tar.gz
WORKDIR /electrumx-${_VERSION}

RUN chmod a+x /usr/local/bin/* && \
apk add --no-cache git build-base openssl && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community leveldb-dev && \
pip install aiohttp pylru plyvel && \
apk add --no-cache build-base openssl && \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/community leveldb-dev && \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing rocksdb-dev && \
pip install aiohttp pylru plyvel websockets python-rocksdb && \
python setup.py install && \
apk del git build-base && \
rm -rf /var/cache/apk/* && \
apk del build-base && \
rm -rf /tmp/*

VOLUME ["/data"]
ENV HOME /data
ENV ALLOW_ROOT 1
ENV DB_DIRECTORY /data
ENV SERVICES=tcp://:50001,ssl://:50002,wss://:50004,rpc://0.0.0.0:8000
ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt
ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key
ENV HOST ""
WORKDIR /data

EXPOSE 50001 50002 50004 8000
Expand Down

0 comments on commit 739bdb1

Please sign in to comment.