33 lines
1000 B
Docker
33 lines
1000 B
Docker
FROM [[ .docker.repo ]][[ .docker.base_images.alma9.image ]]
|
|
MAINTAINER [[ .docker.maintainer ]]
|
|
|
|
ARG LLNG_MAJOR_VERSION=2.0
|
|
|
|
ENV LLNG_HANDLER_PORT=8183 \
|
|
LLNG_HANDLER_PROTOCOL=http \
|
|
LLNG_HANDLER_WORKERS=2 \
|
|
SOURCE_SERVER=traefik
|
|
|
|
COPY root/ /
|
|
RUN sed -i -e "s/stable/${LLNG_MAJOR_VERSION}/g" /etc/yum.repos.d/lemonldap-ng.repo &&\
|
|
microdnf upgrade -y --best --nodocs --noplugins --setopt=install_weak_deps=0 &&\
|
|
microdnf -y --nodocs --setopt=install_weak_deps=0 install \
|
|
tini \
|
|
lemonldap-ng-handler \
|
|
lemonldap-ng-uwsgi-app \
|
|
uwsgi \
|
|
uwsgi-plugin-psgi \
|
|
perl-DBD-MySQL \
|
|
perl-DBD-Pg \
|
|
perl-Cache-Cache \
|
|
perl-Apache-Session-Browseable \
|
|
perl-Apache-Session-Redis \
|
|
perl-Apache-Session-NoSQL \
|
|
perl-Apache-Session-LDAP &&\
|
|
microdnf -y clean all &&\
|
|
rm -rf /var/cache/yum/* /var/log/yum/* /var/lib/dnf/history*
|
|
|
|
USER apache
|
|
EXPOSE ${LLNG_HANDLER_PORT}
|
|
ENTRYPOINT ["tini", "--", "/llng-handler.sh"]
|