Dockerfile cross platform TARGETARCH build not working

This is my Dockerfile : FROM tomcat:9 RUN apt-get update RUN apt-get install -y iputils-ping file ARG TARGETARCH RUN if ["$TARGETARCH" = "amd64"]; then \ apt-get install -y libc6-i386 ; \ fi WORKDIR /usr/local/tomcat … // skipped The problem is the libc6-i386 package. It just cannot be installed on amd64 architecture. I am building docker… Read More Dockerfile cross platform TARGETARCH build not working