Dockerfile arm architecture #1892
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
buildscripts/docker/Dockerfile.bionic
doesn't work on arm architecture (Apple M1, Raspberry Pi, ...).Update on how to deal with this:
export DOCKER_BUILDKIT=1
before runningdocker build
ARG TARGETARCH
just after the topFROM
TARGETARCH
argument into the command line when executing the command line manually$TARGETARCH
argument in the rest of the Dockerfile can be used to distinguish betweenamd64
andarm64
. I haven't tested other platforms.Dockerfile
syntax doesn't support branching, the way I found to do this is to have a per-architecture stage, for example