-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
54 lines (47 loc) · 2.21 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
ARG BASE=
FROM ${BASE}
LABEL maintainer="Yadd [email protected]>" \
name="yadd/lemonldap-ng-portal" \
version="v1.0"
ENV SERVERNAME= \
NPROC= \
ENGINE=FCGI
RUN echo "# Install nginx and portal libs" && \
apt-get -y update && \
apt-get -y upgrade && \
export DEBIAN_FRONTEND=noninteractive && \
apt-get -y -o Dpkg::Options::="--force-confold" --no-install-recommends install nginx \
lemonldap-ng-fastcgi-server"${LLNGDIST}" \
liblemonldap-ng-portal-perl"${LLNGDIST}" \
gsfonts patch libconvert-pem-perl \
libcrypt-u2f-server-perl libgeoip2-perl \
libglib-perl libgssapi-perl libhttp-browserdetect-perl \
libimage-magick-perl liblasso-perl libnet-facebook-oauth2-perl \
libnet-openid-consumer-perl libnet-openid-server-perl \
libnet-oauth-perl libsoap-lite-perl fonts-urw-base35 \
libauthen-webauthn-perl libcrypt-openssl-bignum-perl \
libconvert-base32-perl libio-string-perl libipc-run-perl \
libgd-securityimage-perl libmime-tools-perl libnet-ldap-perl \
libio-socket-timeout-perl libunicode-string-perl liblasso-perl \
libio-string-perl libemail-sender-perl libregexp-common-perl \
libcrypt-jwt-perl libdigest-hmac-perl libdata-password-zxcvbn-perl \
libhttp-browserdetect-perl libnet-dns-perl \
libfcgi-engine-perl libfcgi-procmanager-maxrequests-perl \
&& \
apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/*
COPY *.patch /
RUN for p in appgrid.patch jwt-type.patch app-scope.patch ignorepollers.patch \
fixedLogout.patch more-logs.patch \
matrix-token.patch redirect-ajax.patch recaptcha3.patch \
saml-regression.patch captcha-fix.patch \
metadata-ttl.patch \
; do echo patch $p && patch -p1 < $p; done && \
rm -f /*.patch && \
echo "# Install nginx configuration files" && \
rm -f /etc/nginx/sites-enabled/* && \
ln -s ../../lemonldap-ng/portal-nginx.conf /etc/nginx/sites-enabled/ && \
(echo ""; echo "daemon off;") >> /etc/nginx/nginx.conf && \
perl -i -pe 's#access_log .*;#access_log /dev/stdout;#; s#error_log .*;#error_log /dev/stdout info;#' /etc/nginx/nginx.conf
COPY install /
EXPOSE 80
CMD ["/usr/sbin/nginx"]