Docker Community Forums

Share and learn in the Docker community.

How to build the official docker image of alpine linux?

I would like to know how to build exactly the same image as the official one ?
When I use the alpine-make-rootfs script, it doesn’t give me the same hash as the official alpine-minirootfs-3.14.0-x86_64.tar.gz
I tried different options with the script, but the hash is always different.
Official (3.14) sha512:

My rootfs (3.14) sha512:

I used this command:
sudo ./alpine-make-rootfs --branch v3.14 --timezone 'Europe/Prague' --packages 'openssl-dev' --script-chroot rootfs.tar.gz

how do we do it for other architectures? via qemu ?