forked from chrohrer/rad_eap_test
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (17 loc) · 807 Bytes
/
Dockerfile
File metadata and controls
25 lines (17 loc) · 807 Bytes
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
FROM frolvlad/alpine-gcc:latest
LABEL maintainer="chris.rohrer@ubuntunet.net"
ARG WPA_SUPPLICANT_VERSION=2.10
WORKDIR /eapol
RUN apk update && apk upgrade && \
apk add --update linux-headers make openssl openssl-dev bind-tools freeradius-radclient grep bash && \
rm /var/cache/apk/*
# ADD https://w1.fi/releases/wpa_supplicant-$WPA_SUPPLICANT_VERSION.tar.gz /tmp
RUN wget https://w1.fi/releases/wpa_supplicant-$WPA_SUPPLICANT_VERSION.tar.gz -O - | tar -xz
COPY defconfig /eapol/wpa_supplicant-$WPA_SUPPLICANT_VERSION/wpa_supplicant/.config
WORKDIR /eapol/wpa_supplicant-$WPA_SUPPLICANT_VERSION/wpa_supplicant
RUN make eapol_test
RUN mv eapol_test /usr/local/bin/
WORKDIR /eapol
COPY rad_eap_test /usr/local/bin/
RUN rm -rf /eapol/wpa_supplicant-$WPA_SUPPLICANT_VERSION
CMD tail -f /dev/null