Getting started with DockerMulti-Architecture Images
Get your Laravel/PHP App Running on ARM and x86 Servers using Multi-Architecture Docker Images
Save 40% and deploy your Laravel app on ARM servers
Motivation
In November 2018, Amazon announced EC2 A1 instances that feature 64-bit ARM Neoverse cores. The A1 EC2 instances are cost and performance optimised for scale-out workloads.
We all know that we can deploy Laravel on ARM servers, but what if we are deploying it to a hybrid architecture cluster ? Or we want to run it on a Mac and Raspberry Pi 4 at the same time?
Now, instead of dockerizing our Laravel application on each architecture one by one, we are able to build multi-architecture Docker images using Docker’s BuildKit with just a single build command. According to Docker, it uses QEMU emulation that comes with pre-configured binfmt_misc to run binaries of any supported architecture for the arm/v6, arm/v7 and arm64.
Working in a travel startup, it’s nice to be able to save 40% of our server costs.