Skip to content

Commit 9940dc8

Browse files
committed
docker-entrypoint: export LD_PRELOAD
Otherwise it won't applied to the execed process. Fix: rails#50943 (comment)
1 parent a8d6d47 commit 9940dc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/docker-entrypoint.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Enable jemalloc for reduced memory usage and latency.
44
if [ -f /usr/lib/*/libjemalloc.so.2 ]; then
5-
LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2) $LD_PRELOAD"
5+
export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2) $LD_PRELOAD"
66
fi
77

88
<% unless skip_active_record? -%>

0 commit comments

Comments
 (0)