-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (23 loc) · 829 Bytes
/
Dockerfile
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 ubuntu:latest
RUN apt-get update && apt-get -y upgrade
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:freeradius/stable-3.0;\
apt-get update;\
apt-get -y install freeradius freeradius-ldap freeradius-utils freeradius-config freeradius-rest
# Optional packages
RUN apt-get -y install ldap-utils
# Clean up
RUN apt-get clean && apt-get purge
ADD files/etc/ /etc/
ADD files/eapol_test/eapol_test /usr/bin/eapol_test
ADD files/eapol_test/ca-bundle.crt /root/ca-bundle.crt
ADD files/eapol_test/test.conf.template /root/test.conf.template
ADD files/eapol_test/test.sh /root/test.sh
ADD files/eapol_test/radtest.sh /root/radtest.sh
ADD .bash_history /root/.bash_history
ADD run.sh /root/run.sh
EXPOSE 1812/udp
EXPOSE 1813/udp
WORKDIR /root
VOLUME /var/log/freeradius
CMD /root/run.sh