Skip to content
Open

v29 #18

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,25 @@ RUN git clone --depth 1 https://github.com/bitcoin/bitcoin.git --branch v$VERSIO

WORKDIR /bitcoin

RUN cd /bitcoin/depends; make NO_QT=1 -j"$(($(nproc)+1))"
RUN cd /bitcoin/depends; \
make NO_QT=1 -j"$(($(nproc)+1))"

RUN wget https://zlib.net/zlib-1.3.1.tar.gz && \
echo "9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23 zlib-1.3.1.tar.gz" | sha256sum -c && \
mkdir -p /usr/src/zlib; tar zxvf zlib-1.3.1.tar.gz -C /usr/src && \
cd /usr/src/zlib-1.3.1; ./configure; make -j"$(($(nproc)+1))"; make -j"$(($(nproc)+1))" install
cd /usr/src/zlib-1.3.1; \
./configure; \
make -j"$(($(nproc)+1))"; \
make -j"$(($(nproc)+1))" install

RUN export CONFIG_SITE=/bitcoin/depends/$(/bitcoin/depends/config.guess)/share/config.site && \
cd /bitcoin; ./autogen.sh; \
./configure --disable-ccache \
--disable-maintainer-mode \
--disable-dependency-tracking \
--enable-reduce-exports --disable-bench \
--disable-tests \
--disable-gui-tests \
--without-gui \
--without-miniupnpc \
CFLAGS="-O2 -g0 --static -static -fPIC" \
CXXFLAGS="-O2 -g0 --static -static -fPIC" \
LDFLAGS="-s -static-libgcc -static-libstdc++ -Wl,-O2"

RUN make -j"$(($(nproc)+1))" && \
make -j"$(($(nproc)+1))" install
cd /bitcoin; \
cmake -B build \
-DENABLE_WALLET=OFF \
--toolchain depends/$(/bitcoin/depends/config.guess)/toolchain.cmake \
-DCMAKE_CXX_FLAGS="-O0 -g0 -static -fPIC"; \
cmake --build build; \
cmake --install build;

FROM alpine:latest
COPY --from=build /usr/local /usr/local
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
28.1
29.0
Loading