forked from arthepsy/pan-globalprotect-okta
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (19 loc) · 794 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
FROM alpine:3.10
WORKDIR /
RUN apk update && apk add --no-cache \
curl git \
automake autoconf libtool gcc musl-dev make linux-headers \
gettext openssl-dev libxml2-dev lz4-dev libproxy-dev \
py2-lxml py2-requests py2-pip \
&& rm -rf /var/cache/apk/*
RUN pip install pyotp
RUN mkdir -p /usr/local/sbin
RUN curl -o /usr/local/sbin/vpnc-script http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script
RUN chmod +x /usr/local/sbin/vpnc-script
RUN git clone -b "v8.10" --single-branch --depth=1 https://gitlab.com/openconnect/openconnect.git
WORKDIR /openconnect
RUN ./autogen.sh
RUN ./configure --without-gnutls --with-vpnc-script=/usr/local/sbin/vpnc-script
RUN make check
RUN make
CMD ["/openconnect/gp-okta/gp-okta.py","/openconnect/gp-okta/gp-okta.conf"]