forked from lukechilds/docker-electrumx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (27 loc) · 829 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
33
FROM python:3.6-alpine3.6
LABEL maintainer="OPL"
COPY ./bin /usr/local/bin
RUN chmod a+x /usr/local/bin/* && \
apk add --no-cache git build-base openssl bash && \
apk add --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ leveldb-dev && \
pip install aiohttp pylru plyvel quark_hash && \
git clone https://github.com/odinblockchain/electrumx.git && \
cd electrumx && \
git checkout odin-support && \
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 TCP_PORT=50001
ENV SSL_PORT=50443
ENV SSL_CERTFILE ${DB_DIRECTORY}/electrumx.crt
ENV SSL_KEYFILE ${DB_DIRECTORY}/electrumx.key
ENV HOST=""
ENV COIN=Odin
ENV USERNAME=root
WORKDIR /data
EXPOSE 50001 50443 8000
CMD ["init"]