-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 1.05 KB
/
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
FROM freeradius/freeradius-server:3.2.3-alpine
LABEL maintainer="Marco Moenig <marco@moenig.it>"
ARG PLUGIN_VERSION=3.4.3
COPY raddb/ /etc/raddb/
COPY entrypoint.sh /
ADD https://raw.githubusercontent.com/privacyidea/FreeRADIUS/refs/tags/v${PLUGIN_VERSION}/privacyidea_radius.pm /usr/share/privacyidea/freeradius/
ADD https://raw.githubusercontent.com/privacyidea/FreeRADIUS/refs/tags/v${PLUGIN_VERSION}/dictionary.netknights /etc/raddb/dictionary
RUN apk update
RUN apk add \
perl \
perl-config-inifiles \
perl-data-dump \
perl-try-tiny \
perl-json \
perl-lwp-protocol-https \
perl-yaml-libyaml\
perl-module-build \
freeradius-utils
RUN perl -MCPAN -e 'install URI::Encode'
RUN rm /etc/raddb/sites-enabled/inner-tunnel
RUN rm /etc/raddb/sites-enabled/default
RUN rm /etc/raddb/mods-enabled/eap
RUN echo DEFAULT Auth-Type := Perl >> /etc/raddb/users
EXPOSE 1812/udp
EXPOSE 1813/udp
EXPOSE 1812/tcp
ENTRYPOINT ["/entrypoint.sh"]
CMD [ "radiusd" ]