**UPDATE** Docker file FREEPBX 12.0.3 and ASTERISK 13.1 install Works!

I have got a bit further by editing the freepbx build order slightly to match what this user:

had put and restarting asterisk in between commands but now i am getting a php error

SETTING FILE PERMISSIONS…Done
Removing any dangling symlinks
Dangling symlinks removed

Please wait…

Upgrading: callrecording, cdr, core, dashboard, featurecodeadmin, framework, infoservices, sipsettings, voicemail
Upgrading callrecording…
Downloading 33087 of 33087 (100%)

Untaring…Done
Module callrecording successfully downloaded
PHP Fatal error: Cannot redeclare callrecording_destinations() (previously declared in /tmp/freepbx/amp_conf/htdocs/admin/modules/callrecording/functions.inc.php:16) in /var/www/html/admin/modules/callrecording/functions.inc.php on line 29