How to install cyberpanel in a docker container

Is there a way to install CyberPanel as a container ? I have tried installing it on a ubuntu 22.04 container but it throws a bunch of errors during installation.