docker-entrypoint: export LD_PRELOAD

Otherwise it won't applied to the execed process.

Fix: https://github.com/rails/rails/pull/50943#issuecomment-1936443319
This commit is contained in:
Jean Boussier 2024-02-12 14:14:17 +01:00
parent a8d6d477c7
commit 9940dc879d
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
# Enable jemalloc for reduced memory usage and latency.
if [ -f /usr/lib/*/libjemalloc.so.2 ]; then
LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2) $LD_PRELOAD"
export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2) $LD_PRELOAD"
fi
<% unless skip_active_record? -%>