-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-raspap
More file actions
32 lines (25 loc) · 797 Bytes
/
Dockerfile-raspap
File metadata and controls
32 lines (25 loc) · 797 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
25
26
27
28
29
30
31
32
FROM armv7/armhf-ubuntu:yakkety
MAINTAINER Gary Ritchie gary@garyritchie.com
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -q -y install
nano
sudo
net-tools
wireless-tools
lighttpd
php-cgi
git
&& apt-get clean
RUN lighty-enable-mod fastcgi-php RUN /etc/init.d/lighttpd restart
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -q -y install
wget
unzip
hostapd
bridge-utils
hostap-utils
iw
dnsmasq
wpasupplicant
&& apt-get clean RUN echo 'www-data ALL=(ALL) NOPASSWD: ALL\n%www-date ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/www-data
RUN chmod 0440 /etc/sudoers.d/www-data RUN git clone https://github.com/billz/raspap-webgui /var/www/ap RUN chown -R www-data:www-data /var/www
EXPOSE 80 EXPOSE 100
ENTRYPOINT ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]