Bulid Game in Remote Ubuntu Server

Hello there,

Is it possible to build and package a game in a remote server (Ubuntu Server) for Linux distribution?

The server might or might not have a GPU.

I was thinking o compiling the engine from source in the server and then build and package it from the command line?

Thanks in advance