Alpine for ARM from Scratch
We will build a Alpine Image from the scratch image and mounting the minirootfs to /
.
Getting Started:
Optain the Alpine version from the link below:
Download the Alpine MiniRootFS:
$ wget https://nl.alpinelinux.org/alpine/v3.5/releases/armhf/alpine-minirootfs-3.5.1-armhf.tar.gz
The Dockerfile:
FROM scratch
ADD alpine-minirootfs-3.5.1-armhf.tar.gz /
CMD ["/bin/sh"]
Build the Image from your Dockerfile:
$ docker build -t {image}:{tag} .
I have published my image on docker hub, so you can run it from your repository or from mine:
$ docker run -it rbekker87/armhf-alpine:3.5 echo "hello, world"
hello, world