FROM ubuntu:16.04
MAINTAINER Divlex <[email protected]>
LABEL Description="Zcash node Datadir /db, Config /.zcash/zcash.conf"
ENV GIT_REPO https://github.com/zcash/zcash.git
ENV GIT_RELEASE v1.0.15
RUN mkdir /Zcash-node && apt-get update && apt-get install -y build-essential pkg-config libc6-dev m4 g++-multilib \
autoconf libtool ncurses-dev unzip git python python-zmq \
zlib1g-dev wget curl bsdmainutils automake software-properties-common
WORKDIR /Zcash-node
RUN add-apt-repository ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt-get install -y g++-4.9
RUN git clone ${GIT_REPO} && \
cd zcash/ && \
git fetch origin && \
git checkout ${GIT_RELEASE} && \
./zcutil/fetch-params.sh && \
./zcutil/build.sh --disable-rust -j$(nproc) && \
mkdir -p /root/.zcash && \
mkdir -p /db
ADD ./zcash.conf /root/.zcash/zcash.conf
CMD ["/Zcash-node/zcash/src/zcashd", "--conf=/root/.zcash/zcash.conf", "--datadir=/db"]
#----------------------------------------------------------------------------------
version: '2'
services:
zcash-node:
image: lykkex/zcash
container_name: zcash
ports:
- "8132:8132"
- "18213:18213"
- "28332:28332"
volumes:
- ./zcash.conf:/root/.zcash/zcash.conf
- ./db:/db/
#----------------------------------------------------------------------------------
server=1
whitelist=127.0.0.1
txindex=1
addressindex=1
timestampindex=1
spentindex=1
zmqpubrawtx=tcp://127.0.0.1:28332
zmqpubhashblock=tcp://127.0.0.1:28332
rpcallowip=0.0.0.0/0
rpcuser=${login}
rpcpassword=${pass}
rpcport=8132
bind=0.0.0.0:18213
uacomment=bitcore
addnode=mainnet.z.cash
Content type
Image
Digest
Size
1.8 GB
Last updated
over 8 years ago
docker pull divlex/zcash:v1.0.15