Skip to content

Commit

Permalink
Optimize images using gzexe
Browse files Browse the repository at this point in the history
  • Loading branch information
reverse-hash committed May 6, 2024
1 parent ab57ed4 commit 142987e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@ Your node will participate in the Bitcoin network exchanging blocks with other n

The following services are deployed:

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

## Documentation

Expand Down
9 changes: 8 additions & 1 deletion bitcoind/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@ RUN apt-get update \
&& cd .. \
&& ./autogen.sh \
&& ./configure \
--enable-glibc-back-compat \
--prefix=$PWD/depends/$(gcc -dumpmachine) LDFLAGS="-static-libstdc++" \
--disable-bench \
--disable-cli \
--disable-debug \
--disable-man \
--disable-tests \
--disable-upnp \
--disable-wallet \
--disable-zmq \
--with-qrencode=no \
--enable-fuzz-binary=no \
--enable-strip \
--without-gui \
--without-bdb \
--with-sqlite=no \
&& make \
&& gzexe src/bitcoind \
&& apt-get remove build-essential libtool autotools-dev automake pkg-config bsdmainutils libevent-dev libboost-dev curl python3 byacc git wget -y


Expand Down
1 change: 1 addition & 0 deletions electrs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN apt-get update \
&& wget -O - https://romanzey.de/pgp.txt | gpg --import \
&& git verify-tag v${ELECTRS_VERSION} \
&& cargo build --no-default-features --locked --release \
&& gzexe target/release/electrs \
&& apt-get remove build-essential cargo cmake clang git wget -y


Expand Down
1 change: 1 addition & 0 deletions tor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apt-get update \
--with-openssl-dir=$(dirname $(dpkg -L libssl-dev | grep libssl.a)) \
--with-zlib-dir=$(dirname $(dpkg -L zlib1g-dev | grep libz.a)) \
&& make \
&& gzexe src/app/tor \
&& apt-get remove build-essential automake libevent-dev libssl-dev zlib1g-dev git wget -y


Expand Down

0 comments on commit 142987e

Please sign in to comment.