Having problems to build a docker production image due the sharp issues on ARM

I build the images locally with docker buildx build --build-arg NODE_ENV=production --platform linux/arm64/v8 --tag namespace/strap:${change_it} --no-cache -f Dockerfile.prod . and I have a github-action which is doing the same. Here is the job - name: Build & push image uses: docker/build-push-action@v5 with: context: . push: true cache-from: type=gha cache-to: type=gha,mode=max tags: ${{ env.IMAGE_REPOSITORY }}:latest, ${{ env.IMAGE_REPOSITORY }}:${{ env.IMAGE_TAG }} build-args: | NODE_ENV=production platforms: linux/arm64 file: ./Dockerfile.prod provenance: false