Source: https://forum.proxmox.com/threads/disable-acpi-power-button-shutdown-host.64637/
Edit file /etc/systemd/logind.conf. Uncomment HandlePowerKey and set value to ignore.To save changes:
systemctl daemon-reload
systemctl restart systemd-logind.service