-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
27 lines (20 loc) · 885 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
FROM alpine:latest
LABEL maintainer="Andrea Cuneo <andrea.cuneo@ark-energy.eu>" version="1.0.0"
ENV AzureAdDomain=\
AzureAdClientId=\
AzureAdSecret=\
NASName=\
NASNetwork=\
NASSecret=
COPY docker-entrypoint.sh /
RUN apk update && apk upgrade && \
apk add --no-cache --update freeradius freeradius-utils freeradius-perl ca-certificates perl-json perl-libwww perl-lwp-protocol-https && \
chmod +x /docker-entrypoint.sh
COPY freeradius-oauth2-perl /opt/freeradius-oauth2-perl
COPY inner-tunnel default /etc/raddb/sites-available/
RUN printf '\n$INCLUDE /opt/freeradius-oauth2-perl/dictionary\n' >> /etc/raddb/dictionary && \
ln -s /opt/freeradius-oauth2-perl/module /etc/raddb/mods-enabled/oauth2 && \
ln -s /opt/freeradius-oauth2-perl/policy /etc/raddb/policy.d/oauth2
EXPOSE 1812/udp 1813/udp
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["radiusd"]