Auto-build failing at first RUN

Hello,

I am trying to build a Docker Hub Repo that can run on Nvidia Jetson Xavier NX.
I am using base image FROM nvcr.io/nvidia/l4t-base:r32.4.4 and with this image, auto build is failing…
I am able to build an image successfully on a Jetson Xavier device but the same Docker file is not working in Docker Hub.
Can you please help me in resolving this issue?

Cloning into ‘.’…
Warning: Permanently added the RSA host key for IP address ‘140.82.113.3’ to the list of known hosts.
Reset branch ‘master’
Your branch is up-to-date with ‘origin/master’.
KernelVersion: 4.4.0-1060-aws
Components: [{u’Version’: u’19.03.8’, u’Name’: u’Engine’, u’Details’: {u’KernelVersion’: u’4.4.0-1060-aws’, u’Os’: u’linux’, u’BuildTime’: u’2020-03-11T01:24:30.000000000+00:00’, u’ApiVersion’: u’1.40’, u’MinAPIVersion’: u’1.12’, u’GitCommit’: u’afacb8b7f0’, u’Arch’: u’amd64’, u’Experimental’: u’false’, u’GoVersion’: u’go1.12.17’}}, {u’Version’: u’1.2.13’, u’Name’: u’containerd’, u’Details’: {u’GitCommit’: u’7ad184331fa3e55e52b890ea95e65ba581ae3429’}}, {u’Version’: u’1.0.0-rc10’, u’Name’: u’runc’, u’Details’: {u’GitCommit’: u’dc9208a3303feef5b3839f4323d9beb36df0a9dd’}}, {u’Version’: u’0.18.0’, u’Name’: u’docker-init’, u’Details’: {u’GitCommit’: u’fec3683’}}]
Arch: amd64
BuildTime: 2020-03-11T01:24:30.000000000+00:00
ApiVersion: 1.40
Platform: {u’Name’: u’Docker Engine - Community’}
Version: 19.03.8
MinAPIVersion: 1.12
GitCommit: afacb8b7f0
Os: linux
GoVersion: go1.12.17
Starting build of index.docker.io/durancai/staging-engine-jetson-xavier:latest
Step 1/115 : FROM nvcr.io/nvidia/l4t-base:r32.4.4
—> 10faffedd5fa
Step 2/115 : ENV DEBIAN_FRONTEND=noninteractive
—> Running in fbaee5c05543
Removing intermediate container fbaee5c05543
—> 332451bc1d77
Step 3/115 : RUN apt-get update
—> Running in 5798ac2f177f
e[91mstandard_init_linux.go:211: exec user process caused “exec format error”
e[0m
Removing intermediate container 5798ac2f177f
The command ‘/bin/sh -c apt-get update’ returned a non-zero code: 1

I have configured an auto build in Docker Hub to a GitHub Repository. Whenever we push code to GitHub, image is getting created in Docker Hub if the base image in Docker file is x64 like ubuntu etc. But when we have a Docker file with base image as ARM architecture, auto build in Docker Hub is failing at the first step itself @apt-get update. Below is the sample Docker file I created…

#Getting Base Image
FROM nvcr.io/nvidia/l4t-base:r32.4.4
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update

# Remove OpenCV4.1
RUN apt-get purge *libopencv*
....
....

Can anyone help me in resolving this issue? Thank You!