summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-04-07 21:51:27 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2019-04-07 21:51:27 +0200
commit3ce97fe80fc2d5823ce0ae2bb41f52f8c5910f95 (patch)
tree2b1e328d6e91f33cb81fdfda82446baa0bdcb1af /docker
parent55d80d62c2d102412302222c7d18762763c4ac38 (diff)
Initial Dockerfile for aarch64
Diffstat (limited to 'docker')
-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"]