1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2024-11-24 08:12:38 +02:00
imgproxy/docker/entrypoint.sh
2023-05-10 19:22:34 +03:00

23 lines
332 B
Bash
Executable File

#!/bin/bash
case "$IMGPROXY_MALLOC" in
malloc)
# Do nothing
;;
jemalloc)
export LD_PRELOAD="$LD_PRELOAD:/usr/local/lib/libjemalloc.so"
;;
tcmalloc)
export LD_PRELOAD="$LD_PRELOAD:/usr/local/lib/libtcmalloc_minimal.so"
;;
*)
echo "Unknows malloc: $IMGPROXY_MALLOC"
exit 1
esac
exec "$@"