forked from cdryzun/docker-openconnect-ldap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
32 lines (26 loc) · 869 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
27
28
29
30
31
32
FROM debian:latest
LABEL maintainer="@cdryzun" \
maintainer="[email protected]" \
version=0.1 \
description="Openconnect server with libpam-ldap for AD authentication"
COPY docker-entrypoint.sh /
COPY ocserv /config
COPY pam_ldap /etc/default/pam_ldap
RUN \cp -a /config /etc/default/ocserv \
&& apt-get update && apt-get install -y \
ocserv \
libnss-ldap \
iptables \
procps \
rsync \
sipcalc \
ca-certificates \
gnutls-bin \
&& rm -rf /var/lib/apt/lists/* /etc/pam_ldap.conf \
&& touch /config/pam_ldap.conf \
&& ln -s /config/pam_ldap.conf /etc/pam_ldap.conf \
&& chmod a+x /docker-entrypoint.sh
WORKDIR /config
EXPOSE 443/tcp \
443/udp
ENTRYPOINT ["/docker-entrypoint.sh", "ocserv", "-c", "/config/ocserv.conf", "-f"]