To disable core dumps create a file /etc/security/limits.d/no_core_dumps with the content * hard core 0:
/etc/security/limits.d/no_core_dumps
* hard core 0
echo '* hard core 0' > /etc/security/limits.d/no_core_dumps
Based on the “Nix Craft” article Linux Disable Core Dumps.