Bugzilla docker image creation failure

Tried to build Bugzilla docker image on local, but it is failing
Tried both https://github.com/bugzilla/harmony.git and https://github.com/mozilla-bteam/bmo.git

Getting error
“ERROR: failed to solve: process “/bin/sh -c perl checksetup.pl --no-database --default-localconfig && rm -rf /app/data /app/localconfig && mkdir /app/data” did not complete successfully: exit code: 2”

Any documentation on building a good docker image