summaryrefslogtreecommitdiff
path: root/docker/Dockerfile.aarch64
diff options
context:
space:
mode:
Diffstat (limited to 'docker/Dockerfile.aarch64')
-rw-r--r--docker/Dockerfile.aarch6423
1 files changed, 23 insertions, 0 deletions
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"]