forked from MarkusMcNugen/docker-openconnect
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
30 lines (21 loc) · 861 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
FROM debian:latest
LABEL maintainer="@MorganOnBass" \
maintainer="[email protected]" \
version=0.1 \
description="Openconnect server with libpam-ldap for AD authentication"
# Forked from MarkusMcNugen for AD Auth
# Forked from TommyLau for unRAID
VOLUME /config
# Install ocserv
#RUN apk add --update bash rsync ipcalc sipcalc ca-certificates rsyslog logrotate runit
RUN apt-get update && apt-get -y install ocserv libnss-ldap iptables procps rsync sipcalc ca-certificates
RUN rm /etc/pam_ldap.conf && touch /config/pam_ldap.conf && ln -s /config/pam_ldap.conf /etc/pam_ldap.conf
ADD ocserv /etc/default/ocserv
ADD pam_ldap /etc/default/pam_ldap
WORKDIR /config
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 443/tcp
EXPOSE 443/udp
CMD ["ocserv", "-c", "/config/ocserv.conf", "-f"]
#CMD ["/bin/bash"]