forked from BTCPrivate-Legacy/electrumx
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
35 lines (29 loc) · 1.39 KB
/
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
34
35
FROM python:3.6
# Prepare user
RUN useradd -ms /bin/bash zcluser
WORKDIR /home/zcluser
# Install zcl dependencies
RUN apt-get update
RUN apt-get install -y apt-utils
RUN apt-get install -y libleveldb1v5 libleveldb-dev
RUN apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake
# Build zcl node daemon
RUN git clone --recursive https://github.com/ZclassicDev/zclassic.git
RUN mkdir /home/zcluser/zcl_electrum_db
RUN /home/zcluser/zclassic/zcutil/build.sh -j$(nproc)
# Install electrumx dependencies
RUN pip install pylru==1.0.9
RUN pip install aiohttp==1.0.5
RUN pip install x11_hash==1.4
RUN pip install plyvel==0.9
COPY run_electrumx_docker.sh /home/zcluser/run_electrumx_docker.sh
RUN chown -R zcluser:zcluser /home/zcluser/zcl_electrum_db /home/zcluser/run_electrumx_docker.sh
RUN chmod 755 /home/zcluser/run_electrumx_docker.sh
USER zcluser
RUN /home/zcluser/zclassic/zcutil/fetch-params.sh
RUN git clone --recursive https://github.com/ZclassicDev/electrumx.git
RUN wget -q https://github.com/ZclassicDev/zclassic/releases/download/Config/zclassic.conf
RUN sed -ie '/^rpcallowip=127.0.0.1/a txindex=1' zclassic.conf
RUN sed -ie '/^rpcport=8232/a txindex=1' zclassic.conf ### OLD rpcport?
RUN sed -ie '/^rpcport=8032/a txindex=1' zclassic.conf
ENTRYPOINT ["/bin/sh", "-c", "/home/zcluser/run_electrumx_docker.sh"]