@Ahmed Ayadi
Based on the errors you are receiving I believe this might be related this being a Windows container. Please double check the requirements and configuration here. Users here faced similar issues which were resolved by manually switching to Windows container in Docker. I am not familiar with Bitbucket, but perhaps there is a similar configuration that needs to be done. I would recommend reaching out to the Bitbucket community if you continue to face issues.
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.