blob: 85c7d3585285f8491ab063254f50ab50a51ed896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
FROM openwrt-1806-4-base
#EXPOSE 80
ENV http_proxy={docker_proxy}
ENV https_proxy={docker_proxy}
ENV no_proxy=localhost,120.0.0.1,192.168.*
RUN mkdir /var/lock && \
opkg update && \
opkg install uhttpd-mod-lua && \
uci set uhttpd.main.interpreter='.lua=/usr/bin/lua' && \
uci commit uhttpd && \
opkg install mwan3 && \
opkg install luci-app-mwan3; exit 0
COPY system /etc/config/system
COPY commands.lua /usr/lib/lua/luci/controller/
ENV http_proxy=
ENV https_proxy=
ENV no_proxy=
USER root
# using exec format so that /sbin/init is proc 1 (see procd docs)
CMD ["/sbin/init"]
|