From 3ce97fe80fc2d5823ce0ae2bb41f52f8c5910f95 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 7 Apr 2019 21:51:27 +0200 Subject: Initial Dockerfile for aarch64 --- docker/Dockerfile.aarch64 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker/Dockerfile.aarch64 diff --git a/docker/Dockerfile.aarch64 b/docker/Dockerfile.aarch64 new file mode 100644 index 0000000..dc0576c --- /dev/null +++ b/docker/Dockerfile.aarch64 @@ -0,0 +1,23 @@ +FROM debian:stable-slim as builder + +WORKDIR /root/ + +RUN apt-get update +RUN apt-get -y --no-install-recommends install build-essential subversion fakeroot gawk gpg git wget ca-certificates + +RUN git clone https://github.com/mikma/lxd-openwrt.git + +RUN (cd lxd-openwrt && ./build.sh -v snapshot --type plain) +RUN mkdir rootfs +RUN tar xzf /root/lxd-openwrt/bin/openwrt-snapshot-x86-64-plain.tar.gz -C rootfs + + +FROM scratch + +COPY --from=builder /root/rootfs / + +COPY init.sh / + +RUN mkdir -p /var/lock && opkg update && opkg install luci-ssl + +ENTRYPOINT ["/init.sh"] -- cgit v1.2.3