31 lines
No EOL
546 B
Docker
31 lines
No EOL
546 B
Docker
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild AS BUILDER
|
|
|
|
WORKDIR /
|
|
RUN git clone https://github.com/bitcoin/bitcoin
|
|
|
|
WORKDIR /bitcoin
|
|
|
|
RUN mkdir build
|
|
WORKDIR /bitcoin/build
|
|
|
|
RUN cmake ..
|
|
RUN make -j$(nproc)
|
|
|
|
|
|
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
|
|
|
|
WORKDIR /app
|
|
COPY --from=BUILDER /bitcoin/build/src/bitcoind ./bitcoind
|
|
|
|
WORKDIR /
|
|
ADD ./entrypoint.sh /
|
|
RUN chmod +x entrypoint.sh
|
|
|
|
ENV TXINDEX 0
|
|
ENV PRUNE 953
|
|
|
|
EXPOSE 8333
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] |