devops-infra / docker-terragrunt

Dockerized framework with Terraform, Terragrunt, Python, Make, Docker, Git, and all needed components to easily manage cloud infrastructure.
https://christophshyper.github.io/
MIT License
148 stars 32 forks source link

Fix arm64 builds #2232

Open Crypto89 opened 2 months ago

Crypto89 commented 2 months ago

Move the TARGETPLATFORM before the FROM, otherwise it'll default to the build platform.

Fixes https://github.com/devops-infra/docker-terragrunt/issues/2201

Crypto89 commented 2 months ago

This doesn't really work as intended, it's probably better to drop the TARGETPLATFORM any only use buildx even when not xcompiling. This doesn't work in combination with buildx, see issue https://github.com/docker/buildx/issues/510

ChristophShyper commented 2 months ago

Hello. I'll have a look at it when I have the time. Thanks for taking interest in this!