We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6985c3b + 74a532c commit 85b3004Copy full SHA for 85b3004
railties/lib/rails/generators/rails/app/templates/docker-entrypoint.tt
@@ -1,8 +1,8 @@
1
#!/bin/bash -e
2
3
# Enable jemalloc for reduced memory usage and latency.
4
-if [ -f /usr/lib/*/libjemalloc.so.2 ]; then
5
- export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2) $LD_PRELOAD"
+if [ -z "${LD_PRELOAD+x}" ] && [ -f /usr/lib/*/libjemalloc.so.2 ]; then
+ export LD_PRELOAD="$(echo /usr/lib/*/libjemalloc.so.2)"
6
fi
7
8
<% unless skip_active_record? -%>
0 commit comments