summaryrefslogtreecommitdiff
path: root/docker/Dockerfile
blob: dc0576c8925ed0d0b40f4405dc01d9edb95cd4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"]