Base image for crossbuilding armhf/aarch64 docker images using multi-stage builds
$ make build
Or
$ make build TARGET=armhf
$ make build TARGET=aarch64
FROM elfabio972/crossbuilder:armhf as builder
FROM arm32v6/alpine:latest
COPY --from=builder /usr/bin /usr/bin
RUN [ "cross-build-start" ]
RUN apk update
RUN [ "cross-build-end" ]
FROM elfabio972/crossbuilder:aarch64 as builder
FROM aarch64/alpine:latest
COPY --from=builder /usr/bin /usr/bin
RUN [ "cross-build-start" ]
RUN apk update
RUN [ "cross-build-end" ]