Not able to run "RUN mkdir -p /mnt/" using Docker Buildx build command

I am want to create a spring boot application image.
I am using openjdk:8-alpine java version. I want create a directory “/mnt/app” in the container, so i am using command “`RUN mkdir -p /mnt/app” in dockerFile. When i tried to build image using “docker build” it is working, but when I tried to build image using “docker buildx build --platform linux/arm64” I am getting error

“`executor failed running [/bin/sh -c mkdir -p /mnt/app]: exit code: 1”.

I am using jenkins for deployment, My jenkins node is on linux/amd processor, Aws ecs cluster which i am using for container is on linux/arm64 processor