Skip to content

Commit 87ea1ff

Browse files
josibakewillcl-ark
authored andcommitted
tune gcc to be less resource hungry
fix OOM on docker desktop when building custom images fixes #441
1 parent 29525cf commit 87ea1ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/images/bitcoin/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ RUN set -ex \
4343
&& ./autogen.sh \
4444
&& ./configure \
4545
LDFLAGS=-L`ls -d /opt/db*`/lib/ \
46-
CPPFLAGS=-I`ls -d /opt/db*`/include/ \
46+
CPPFLAGS="-g0 -I`ls -d /opt/db*`/include/ --param ggc-min-expand=1 --param ggc-min-heapsize=32768" \
4747
--prefix=${BITCOIN_PREFIX} \
4848
${BUILD_ARGS} \
4949
&& make -j$(nproc) \

0 commit comments

Comments
 (0)