27 lines
727 B
Docker
27 lines
727 B
Docker
|
FROM debian:stable-slim as build
|
||
|
|
||
|
RUN apt update && apt install -y wget tar
|
||
|
|
||
|
RUN wget https://w1.fi/releases/wpa_supplicant-2.7.tar.gz && \
|
||
|
tar -xzvf wpa_supplicant-2.7.tar.gz && \
|
||
|
apt install -y build-essential pkg-config libnl-3-dev libssl-dev libnl-genl-3-dev
|
||
|
|
||
|
RUN cd wpa_supplicant-2.7/wpa_supplicant && \
|
||
|
cp defconfig .config && \
|
||
|
echo "CONFIG_EAPOL_TEST=y" >> .config && \
|
||
|
make eapol_test && \
|
||
|
cp eapol_test /usr/local/bin
|
||
|
|
||
|
FROM debian:stable-slim
|
||
|
|
||
|
RUN apt update && apt dist-upgrade -y && \
|
||
|
apt install -y freeradius freeradius-ldap freeradius-utils
|
||
|
|
||
|
COPY --from=build /usr/local/bin/eapol_test /usr/local/bin/eapol_test
|
||
|
|
||
|
ADD ./entrypoint.sh /entrypoint.sh
|
||
|
|
||
|
ENTRYPOINT ["/entrypoint.sh"]
|
||
|
|
||
|
CMD ["freeradius","-X"]
|