Archlinux custom dockerfile with aur package: unable to build


Related to this dockerfile

which I build with no issue locally using docker build, I am unable to do the same at docker hub.

As you can see, I am using latest arch image and on top of this I install two aur packages: python-cocotb-git builds correctly. Then, ghdl-gcc-git gives an error message right after downloading the repository

==> Starting pkgver()…
==> Starting build()…
e[91mls: cannot access ‘.’: Operation not permitted
configure: error: working directory cannot be determined
e[91m==> ERROR: A failure occurred in build().
==> Removing installed dependencies…

Any idea why the behavior may change from a local build to a build at docker hub in this case ?