This image is built with the following dockerfile.
Feel free to contact the project at: https://discord.gg/SZ7qXc6wNz
To declare your own RPC password, provide the env var: RPC_PASSWORD
FROM amd64/ubuntu:18.04 AS base
LABEL maintainer="Malakai"
EXPOSE 7332/tcp
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && apt-get install -y software-properties-common
RUN add-apt-repository ppa:bitcoin/bitcoin
RUN apt-get update
RUN apt-get install -y software-properties-common build-essential libtool autotools-dev autoconf libssl-dev
RUN apt-get install -y pkg-config libevent-dev libevent-dev bash net-tools
RUN apt-get install -y libevent-2.1 libevent-pthreads-2.1 wget pwgen
RUN apt-get install -y libboost-system1.65 libevent-2.1 libevent-pthreads-2.1
RUN apt-get install -y libboost-filesystem1.65 libboost-chrono1.65 libboost-program-options1.65
RUN apt-get install -y libboost-thread1.65 libzmq5 git curl cmake libgmp-dev flex bison libudev-dev
RUN apt-get install -y libdb4.8 libdb4.8++ libdb4.8-dev libdb4.8++-dev libminiupnpc-dev libminiupnpc10
RUN apt-get clean
FROM base AS build
WORKDIR /clone
RUN git clone https://github.com/bitflate/bitflate /build
WORKDIR /build/depends
RUN chmod +x config.*
RUN make -j2
WORKDIR /build
RUN chmod +x autogen.sh && ./autogen.sh
RUN chmod +x share/genbuild.sh
RUN ./configure --disable-tests --with-gui=no --disable-bench --prefix=$(pwd)/depends/x86_64-pc-linux-gnu
RUN make -j4
FROM base AS final
RUN useradd -ms /bin/bash coind && \
mkdir /var/lib/coind && \
chown coind:coind /var/lib/coind && \
ln -s /var/lib/coind /home/coind/.coind && \
chown -h coind:coind /home/coind/.coind
VOLUME /var/lib/coind
RUN apt-get install -y
COPY --from=build /build/src/bitflated /usr/local/bin/coind
COPY --from=build /build/src/bitflate-cli /usr/local/bin/coind-cli
WORKDIR /home/coind
USER coind
ENV RANDOM_PASS `pwgen -Bs1 12`
ENV RPC_PASSWORD ${RPC_PASSWORD:-$RANDOM_PASS}
RUN echo "rpcuser=coind\nrpcpassword=$RPC_PASSWORD" > /var/lib/coind/coin.conf
CMD ["/usr/local/bin/coind", "-printtoconsole", "-conf=coin.conf", "-datadir=/var/lib/coind", "-onlynet=ipv4", "-debug"]
Content type
Image
Digest
sha256:129b0941b…
Size
210.4 MB
Last updated
over 3 years ago
docker pull sewercoin/bitflate