Sign inSign up

ftoweren/debian-rootfs-aarch64

By ftoweren

•Updated 9 months ago

Debian rootfs variant essential + apt (AARCH64)

Image
0

1.2K

ftoweren/debian-rootfs-aarch64 repository overview

general info:

  • Debian rootfs built using mmdebstrap varian essential apt included (linux/aarch64)
  • Expose http 80, https 443, ssh 22, dns 53
  • Built and tested on ARM64 device (ZTE B860H v.2) with Armbian Community v25.11 running
    https://github.com/armbian/community/releases/download/25.11.0-trunk.472/Armbian_community_25.11.0-trunk.472_Aml-s9xx-box_trixie_current_6.12.57_minimal.img.xz




get docker image:
docker pull ftoweren/debian-rootfs-aarch64:latest

run docker:
docker run -itd -p 8822:22 -p 8880:80 -p 8843:443 -p 8853:53 --name debian-rootfs --restart always ftoweren/debian-rootfs-aarch64:latest

change OS root password from exec -it running container (if needed):
docker exec -it debian-rootfs passwd




build from Dockerfile:
docker build --no-cache -f path/Dockerfile -t debian-rootfs-aarch64 .

/Dockerfile:
FROM scratch
ENV LANG=C.UTF-8
#built using mmdebstrap --varian=essential
ADD variant-essential+apt/debian-rootfs-essential-apt-trixie-aarch64.tar.gz /
RUN rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/.deb /var/tmp/ /tmp/*
EXPOSE 22 53 80 443

CMD ["sh"] #after container built, edit entrypoint as neccesary COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]


/entrypoint.sh:

#!/bin/sh
/bin/sh

/entrypoint.sh edit inside container after app(s) installed (for example):
#!/bin/sh
#to start installed ssh
/sbin/sshd
echo " * ssh........... [OK]"

sleep 3

#to start installed mariadb /etc/init.d/mariadb start > /dev/null echo " * mariadb....... [OK]" exec "$@"


build rootfs using mmdebstrap:

mmdebstrap --varian=essential --include=apt --include=passwd --include=openssl --include=ca-certificates --include=procps --include=curl --include=wget --aptopt='Apt::Install-Recommends "false"' --dpkgopt="path-exclude=/usr/share/doc/*" --dpkgopt="path-include=/usr/share/doc/*/copyright" --dpkgopt="path-exclude=/usr/share/man/*" --dpkgopt="path-exclude=/usr/share/groff/*"  --dpkgopt="path-exclude=/usr/share/info/*" --dpkgopt="path-exclude=/usr/share/lintian/*" --dpkgopt="path-exclude=/usr/share/locale/*" --dpkgopt="path-exclude=/usr/share/i18n/*" --dpkgopt="path-exclude=/usr/lib/debug/*" trixie debian-rootfs-essential-apt-trixie-aarch64.tar.gz

Tag summary

Content type

Image

Digest

sha256:059b42753…

Size

35.4 MB

Last updated

9 months ago

docker pull ftoweren/debian-rootfs-aarch64