Building a pocket Linux server with Termux and an old phone was a challenge. But I unlocked new possibilities for file ...
I'd pick a phone over Raspberry Pi any day.