forked from lukechilds/docker-electrumx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (27 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.6-alpine3.6
LABEL maintainer="Sotiris Blad <[email protected]>"
COPY ./bin /usr/local/bin
COPY ./VERSION /tmp
RUN VERSION=$(cat /tmp/VERSION) && \
chmod a+x /usr/local/bin/* && \
apk add --no-cache git build-base openssl && \
apk add --no-cache --repository http://nl.alpinelinux.org/alpine/edge/testing leveldb-dev && \
pip install aiohttp pylru plyvel && \
git clone -b $VERSION https://github.com/muecoin/electrumx-server-mue.git && \
cd electrumx-server-mue && \
python setup.py install && \
apk del git build-base && \
rm -rf /tmp/*
VOLUME ["/data"]
ENV HOME /data
ENV ALLOW_ROOT 1
ENV DB_DIRECTORY /data
ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt
ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key
ENV MAX_SESSIONS = 500
ENV COIN="MonetaryUnit"
ENV CACHE_MB = 128
ENV SERVICES=tcp://:50001,ssl://:50002
WORKDIR /data
EXPOSE 50001 50002
CMD ["init"]