You can use lazbuild utility to compile Lazarus project without Lazarus.
How to install it as a service on Linux? (now, when I close ssh connection app stops)