Skip to content

Commit 142987e

Browse files
committed
Optimize images using gzexe
1 parent ab57ed4 commit 142987e

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ Your node will participate in the Bitcoin network exchanging blocks with other n
5252

5353
The following services are deployed:
5454

55-
| Container | Service | Base image | Size |
56-
| -------------- | ---------------------------- | ------------------ | ------- |
57-
| tor | Tor 0.4.8.11 | debian:stable-slim | 99.6 MB |
58-
| bitcoind | Bitcoin core daemon 27.0 | debian:stable-slim | 87 MB |
59-
| electrs | Electrum rust service 0.10.4 | debian:stable-slim | 99.8 MB |
60-
| btcrpcexplorer | Bitcoin explorer 3.4.0 | node:16-slim | 333 MB |
61-
| nginx | NGINX stable | nginx:alpine-slim | 11.5 MB |
55+
| Container | Service | Base image | Size |
56+
| -------------- | ---------------------------- | ------------------ | -------- |
57+
| tor | Tor 0.4.8.11 | debian:stable-slim | 83.2 MB |
58+
| bitcoind | Bitcoin core daemon 26.0 | debian:stable-slim | 80.2 MB |
59+
| electrs | Electrum rust service 0.10.4 | debian:stable-slim | 82.85 MB |
60+
| btcrpcexplorer | Bitcoin explorer 3.4.0 | node:16-slim | 333 MB |
61+
| nginx | NGINX stable | nginx:alpine-slim | 11.5 MB |
6262

6363
## Documentation
6464

bitcoind/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ RUN apt-get update \
1919
&& cd .. \
2020
&& ./autogen.sh \
2121
&& ./configure \
22-
--enable-glibc-back-compat \
2322
--prefix=$PWD/depends/$(gcc -dumpmachine) LDFLAGS="-static-libstdc++" \
2423
--disable-bench \
24+
--disable-cli \
25+
--disable-debug \
2526
--disable-man \
2627
--disable-tests \
28+
--disable-upnp \
2729
--disable-wallet \
30+
--disable-zmq \
2831
--with-qrencode=no \
2932
--enable-fuzz-binary=no \
33+
--enable-strip \
3034
--without-gui \
35+
--without-bdb \
36+
--with-sqlite=no \
3137
&& make \
38+
&& gzexe src/bitcoind \
3239
&& apt-get remove build-essential libtool autotools-dev automake pkg-config bsdmainutils libevent-dev libboost-dev curl python3 byacc git wget -y
3340

3441

electrs/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update \
88
&& wget -O - https://romanzey.de/pgp.txt | gpg --import \
99
&& git verify-tag v${ELECTRS_VERSION} \
1010
&& cargo build --no-default-features --locked --release \
11+
&& gzexe target/release/electrs \
1112
&& apt-get remove build-essential cargo cmake clang git wget -y
1213

1314

tor/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ RUN apt-get update \
2121
--with-openssl-dir=$(dirname $(dpkg -L libssl-dev | grep libssl.a)) \
2222
--with-zlib-dir=$(dirname $(dpkg -L zlib1g-dev | grep libz.a)) \
2323
&& make \
24+
&& gzexe src/app/tor \
2425
&& apt-get remove build-essential automake libevent-dev libssl-dev zlib1g-dev git wget -y
2526

2627

0 commit comments

Comments
 (0)