Skip to content

Commit

Permalink
tune gcc to be less resource hungry
Browse files Browse the repository at this point in the history
fix OOM on docker desktop when building custom images

fixes #441
  • Loading branch information
josibake authored and willcl-ark committed Aug 27, 2024
1 parent 29525cf commit 87ea1ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/images/bitcoin/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN set -ex \
&& ./autogen.sh \
&& ./configure \
LDFLAGS=-L`ls -d /opt/db*`/lib/ \
CPPFLAGS=-I`ls -d /opt/db*`/include/ \
CPPFLAGS="-g0 -I`ls -d /opt/db*`/include/ --param ggc-min-expand=1 --param ggc-min-heapsize=32768" \
--prefix=${BITCOIN_PREFIX} \
${BUILD_ARGS} \
&& make -j$(nproc) \
Expand Down

0 comments on commit 87ea1ff

Please sign in to comment.