forked from peercoin/electrumx-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (28 loc) · 1016 Bytes
/
Dockerfile
File metadata and controls
35 lines (28 loc) · 1016 Bytes
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
34
35
FROM python:3.9-alpine3.16
LABEL maintainer="The Peerchemist <peerchemist@protonmail.ch>"
# based on work by lukechilds, https://github.com/lukechilds/docker-electrumx/
ENV _VERSION=1.17.3
COPY ./bin /usr/local/bin
RUN wget -q -O electrumx.tar.gz https://github.com/peerchemist/electrumx/archive/${_VERSION}.tar.gz
RUN tar -xzf electrumx.tar.gz
WORKDIR /electrumx-${_VERSION}
RUN chmod a+x /usr/local/bin/* && \
apk add --no-cache build-base openssl && \
apk add --no-cache leveldb-dev && \
apk add --no-cache rocksdb-dev && \
pip install aiohttp pylru plyvel websockets && \
python setup.py install && \
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
CMD ["init"]