You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
841 B

FROM python:3.7-alpine3.7
7 years ago
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
7 years ago
COPY ./bin /usr/local/bin
7 years ago
COPY ./VERSION /tmp
RUN VERSION=$(cat /tmp/VERSION) && \
chmod a+x /usr/local/bin/* && \
7 years ago
apk add --no-cache git build-base openssl && \
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main leveldb-dev && \
7 years ago
pip install aiohttp pylru plyvel && \
git clone -b $VERSION https://github.com/kyuupichan/electrumx.git && \
7 years ago
cd electrumx && \
python setup.py install && \
apk del git build-base && \
rm -rf /tmp/*
7 years ago
VOLUME ["/data"]
7 years ago
ENV HOME /data
7 years ago
ENV ALLOW_ROOT 1
7 years ago
ENV DB_DIRECTORY /data
7 years ago
ENV TCP_PORT=50001
ENV SSL_PORT=50002
7 years ago
ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt
ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key
ENV HOST ""
7 years ago
WORKDIR /data
EXPOSE 50001 50002
7 years ago
CMD ["init"]