How to create a Docker container to build ACCESS-OM2 (x86)

I tried running this on my ARM Mac OSX machine.

It all seemed to be going so well, and then

 => ERROR [base-spack 4/6] RUN spack install intel-oneapi-compilers@2021.2.0 arch=linux-rocky8-x86_64                                  35.0s 
------                                                                                                                                       
 > [base-spack 4/6] RUN spack install intel-oneapi-compilers@2021.2.0 arch=linux-rocky8-x86_64:                                              
#8 30.41 ==> Error: concretization failed for the following reasons:                                                                         
#8 30.41                                                                                                                                     
#8 30.41    1. intel-oneapi-compilers compiler 'gcc@8.5.0' incompatible with 'target=x86_64'                                                 
#8 30.41    2. Cannot find compatible targets for intel-oneapi-compilers and patchelf                                                        
#8 30.41    3. 'intel-oneapi-compilers target=x86_64' is not compatible with this machine
#8 30.41 ==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/linux-centos7-aarch64-gcc-10.2.1-patchelf-0.16.1-kjmrsrd7akfwzlejzsdyoun7fwgmvjgk.spec.json
#8 30.41 ==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/linux-centos7-aarch64/gcc-10.2.1/patchelf-0.16.1/linux-centos7-aarch64-gcc-10.2.1-patchelf-0.16.1-kjmrsrd7akfwzlejzsdyoun7fwgmvjgk.spack
#8 30.41 ==> Installing "patchelf@=0.16.1%gcc@=10.2.1 ldflags="-static-libstdc++ -static-libgcc"  build_system=autotools arch=linux-centos7-aarch64" from a buildcache
#8 30.41 ==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/linux-centos7-aarch64-gcc-10.2.1-clingo-bootstrap-spack-h2uxdiwlbvrfsz5mlt2s2xvnefbuk7qx.spec.json
#8 30.41 ==> Fetching https://mirror.spack.io/bootstrap/github-actions/v0.4/build_cache/linux-centos7-aarch64/gcc-10.2.1/clingo-bootstrap-spack/linux-centos7-aarch64-gcc-10.2.1-clingo-bootstrap-spack-h2uxdiwlbvrfsz5mlt2s2xvnefbuk7qx.spack
#8 30.41 ==> Installing "clingo-bootstrap@=spack%gcc@=10.2.1~docs~ipo+python+static_libstdcpp build_type=Release arch=linux-centos7-aarch64" from a buildcache
------
executor failed running [docker-shell spack install ${SPACK_ENV_COMPILER_PACKAGE}@${SPACK_ENV_COMPILER_VERSION} arch=${SPACK_ENV_ARCH}]: exit code: 1

I’ve added x86 to the title.