Dockerfile 695 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM openwrtorg/rootfs:x86-64

MAINTAINER Zhao ZHANG <zo.zhang@gmail.com>

USER root

RUN mkdir /var/lock && \
    opkg update && \
    opkg install uhttpd luci-base luci-mod-admin-full luci-theme-bootstrap luci-i18n-base-en luci-i18n-firewall-en luci-i18n-base-fr luci-i18n-firewall-fr openssh-sftp-server && \
    uci set luci.ccache.enable=0 && \
    uci commit luci

 RUN mkdir -p /deployment && \
 	 ln -s /usr/lib/lua/luci /deployment/luci-lua && \
	 ln -s /usr/lib/lua/luci/view/ /deployment/luci-view && \
	 ln -s /usr/share/rpcd/acl.d/ /deployment/acl.d && \
	 ln -s /usr/share/luci/menu.d/ /deployment/menu.d && \
	 ln -s /www/luci-static/resources/ /deployment/resources-js

EXPOSE 80