Docker incorrectly collects the image

After buying a mac on an m1 chip, I was faced with the problem of building images
I am working on a test that will check the relevance of the data in the database. After writing this test in pycharm, I collect the image in docker with docker buildx build --platform linux/amd64 -t {IMAGE} . and push it to gitlab with docker push {IMAGE} and then test this image in dagster. My problem is that the image is being assembled, but my changes do not appear in the image, although I have committed and released the changes and I cannot test these changes in dagster. I’m already confused and don’t know what to do with it, so I’ll be glad of any help