Add more stuff
This commit is contained in:
parent
9c5e5424c3
commit
929a428ed1
5 changed files with 33 additions and 3 deletions
31
bitcoin/core/Dockerfile
Normal file
31
bitcoin/core/Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
|||
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"]
|
3
bitcoin/core/entrypoint.sh
Normal file
3
bitcoin/core/entrypoint.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
/app/bitcoind -datadir=/data -server=1 -txindex=$TXINDEX -prune=$PRUNE
|
Loading…
Add table
Add a link
Reference in a new issue