Created
August 8, 2018 17:14
-
-
Save zancas/5486de631790119485a109fe2c8dd0fd to your computer and use it in GitHub Desktop.
A Dockerfile for testing zcash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian@sha256:f1f61086ea01a72b30c7287adee8c929e569853de03b7c462a8ac75e0d0224c4 | |
ENV ZCASH_URL=https://github.com/zcash/zcash.git \ | |
ZCASH_CONF=/home/zcash/.zcash/zcash.conf | |
RUN apt-get update | |
RUN apt-get -qqy install --no-install-recommends build-essential \ | |
automake ncurses-dev libcurl4-openssl-dev libssl-dev libgtest-dev \ | |
make autoconf automake libtool git apt-utils pkg-config libc6-dev \ | |
libcurl3-dev libudev-dev m4 g++-multilib unzip git python zlib1g-dev \ | |
wget ca-certificates pwgen bsdmainutils curl | |
RUN apt-get -qqy install python-pip | |
RUN pip install pyblake2 | |
WORKDIR /src | |
RUN git clone ${ZCASH_URL} | |
WORKDIR /src/zcash | |
RUN ./zcutil/build.sh -j$(nproc) | |
RUN adduser --uid 1000 --system zcash && \ | |
mkdir -p /home/zcash/.zcash/ && \ | |
mkdir -p /home/zcash/.zcash-params/ && \ | |
chown -R zcash /home/zcash | |
RUN ./zcutil/fetch-params.sh --testnet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment