forked from oofnikj/docker-openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (22 loc) · 685 Bytes
/
Dockerfile
File metadata and controls
24 lines (22 loc) · 685 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM scratch
ADD rootfs.tar.gz /
RUN mkdir -p /var/lock
RUN opkg remove dnsmasq && \
opkg update && \
opkg install luci \
wpa-supplicant \
hostapd \
iw-full \
ip-full \
kmod-mac80211 \
iperf3 \
dnsmasq-full \
iptables-mod-checksum
RUN opkg list-upgradable | awk '{print $1}' | xargs opkg upgrade || true
RUN echo "iptables -A POSTROUTING -t mangle -p udp --dport 68 -j CHECKSUM --checksum-fill" >> /etc/firewall.user
ARG ts
ARG version
LABEL org.opencontainers.image.created=$ts
LABEL org.opencontainers.image.version=$version
LABEL org.opencontainers.image.source=https://github.com/oofnikj/docker-openwrt
CMD [ "/sbin/init" ]