Archlinux custom dockerfile with aur package: unable to build

Hi,

Related to this dockerfile

https://hub.docker.com/r/csantosb/arch-vhdl

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[0m
e[91m==> ERROR: A failure occurred in build().
e[0m
Aborting…
==> Removing installed dependencies…

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