-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathDockerfile
40 lines (29 loc) · 989 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
33
34
35
36
37
38
39
40
FROM alpine:3.13.1
MAINTAINER 2stacks <[email protected]>
# Use docker build --pull -t 2stacks/freeradius .
# Image details
LABEL net.2stacks.name="2stacks" \
net.2stacks.license="MIT" \
net.2stacks.description="Dockerfile for autobuilds" \
net.2stacks.url="http://www.2stacks.net" \
net.2stacks.vcs-type="Git" \
net.2stacks.version="1.5.1" \
net.2stacks.radius.version="3.0.20-r1"
RUN apk --update add freeradius freeradius-mysql freeradius-eap openssl
EXPOSE 1812/udp 1813/udp
ENV DB_HOST=localhost
ENV DB_PORT=3306
ENV DB_USER=radius
ENV DB_PASS=radpass
ENV DB_NAME=radius
ENV RADIUS_KEY=testing123
ENV RAD_CLIENTS=10.0.0.0/24
ENV RAD_DEBUG=no
ADD --chown=root:radius ./etc/raddb/ /etc/raddb
RUN /etc/raddb/certs/bootstrap && \
chown -R root:radius /etc/raddb/certs && \
chmod 640 /etc/raddb/certs/*.pem
ADD ./scripts/start.sh /start.sh
ADD ./scripts/wait-for.sh /wait-for.sh
RUN chmod +x /start.sh wait-for.sh
CMD ["/start.sh"]