MacOs: Don't show specific app icon on Dock

I have a hotkey for the terminal that why I decided to hide the terminal icon from Dock, but it appeared to be not so easy.

You need to go to app contents (by doing right click -> "Show Package Contents") and change Info.plist file - add special key:

LSUIElement

(it could be added to the end of the file):