DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Faster Multi-Platform Builds: Dockerfile Cross-Compilation Guide

3 years ago www.docker.com
Faster Multi-Platform Builds: Dockerfile Cross-Compilation Guide

Summary: This is a summary of an article originally published by the source. Read the full original article here →

There are some important changes happening in the software industry. In order to build multi-platform container images, we will use the docker buildxcommand.

docker buildx create --use # building an image for two platforms docker buildx build --platform=linux/amd64,linux/arm64. When building a multi-platform image from a Dockerfile, effectively your Dockerfile gets built once for each platform.

It does this by running the binary through a software emulator instead of doing so directly.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com