Files
electrumx-docker/Dockerfile
Bill 600593f4b1
All checks were successful
Build / build (push) Successful in 3m29s
Exposed port 50001
2024-09-20 22:44:39 -04:00

34 lines
715 B
Docker

FROM ubuntu:22.04
LABEL maintainer="Bill Ballou <bill@bballou.com>"
ARG VERSION
WORKDIR /
RUN apt-get update
RUN apt-get -y install git python3.10 python3-pip libsnappy-dev libbz2-dev libz-dev liblz4-dev
RUN pip3 install multidict aiohttp pylru ujson
RUN git clone -b $VERSION https://github.com/spesmilo/electrumx.git
RUN cd electrumx && pip3 install .
ENV SERVICES="tcp://:50001"
ENV COIN=BitcoinSV
ENV DB_DIRECTORY=/db
ENV DAEMON_URL="http://username:password@hostname:port/"
ENV ALLOW_ROOT=true
ENV DB_ENGINE=leveldb
ENV MAX_SEND=10000000
ENV BANDWIDTH_UNIT_COST=50000
ENV CACHE_MB=2000
VOLUME /db
RUN mkdir -p "$DB_DIRECTORY"
EXPOSE 50001
CMD ["/usr/bin/python3", "/usr/local/bin/electrumx_server"]