|
@@ -4,19 +4,19 @@ ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
EXPOSE 1812/udp 1813/udp 3799/udp 80/tcp
|
|
|
|
|
|
+RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
+ printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list; \
|
|
|
+ apt-get update && apt-get install -yq freeradius freeradius-mysql freeradius-common vim php5 php5-cli \
|
|
|
+ php5-mysql php-pear php-soap php5-xsl cron patch apache2 libapache2-mod-php5 \
|
|
|
+ sudo supervisor; \
|
|
|
+ pear install Net_CheckIP
|
|
|
+
|
|
|
COPY wsdl/code/ /var/www/html/
|
|
|
COPY etc/ /etc/
|
|
|
COPY levanta_freeradius /usr/local/sbin/levanta_freeradius
|
|
|
ADD etc/cron.d/freeradius-cron /etc/cron.d/freeradius-cron
|
|
|
|
|
|
-RUN echo Acquire::http::Proxy "http://aptcache.infra.flowdat.com/"; > /etc/apt/apt.conf.d/00aptproxy; \
|
|
|
- printf "deb http://archive.debian.org/debian/ jessie main\ndeb-src http://archive.debian.org/debian/ jessie main\ndeb http://security.debian.org jessie/updates main\ndeb-src http://security.debian.org jessie/updates main" > /etc/apt/sources.list; \
|
|
|
- apt-get update && apt-get install -yq freeradius freeradius-mysql freeradius-common; \
|
|
|
- apt-get update && apt-get install -yq vim php5 php5-cli \
|
|
|
- php5-mysql php-pear php-soap php5-xsl cron patch apache2 libapache2-mod-php5 \
|
|
|
- sudo supervisor; \
|
|
|
- pear install Net_CheckIP; \
|
|
|
- chmod 0644 /etc/cron.d/freeradius-cron; \
|
|
|
+RUN chmod 0644 /etc/cron.d/freeradius-cron; \
|
|
|
touch /var/log/cron.log; \
|
|
|
chmod -R 755 /etc/freeradius/; \
|
|
|
useradd -s /bin/false freeradius; useradd -s /bin/false freerad; chown freerad.freerad /var/log/freeradius/; \
|