ldap-user-manager/Dockerfile
Brian Lycett 86c82a402e
Next release (#107)
* Custom email body (#51)

* get email body from ENV

* read subject from env

* html mail

* replace special string with username and password

* missing ;

* more str_replace

* utf8 in mail

* typo

* docs

* fix var

* count accounts

* fix print

* Add the ability to set the server path.  Get directed to the appropriate module when you log in.

* Fixes to allow overriding attribute labels properly

* Fix server_path in various places, update to cookies use 'samesite', include boostrap and queryjs files so LUM can run without internet access.

Co-authored-by: Monsieur X <xgaia@gmx.com>
2021-07-22 09:12:55 +01:00

32 lines
952 B
Docker

FROM php:8-apache
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libldb-dev libldap2-dev \
libfreetype6-dev \
libjpeg-dev \
libpng-dev && \
rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-freetype && \
docker-php-ext-install -j$(nproc) gd && \
libdir=$(find /usr -name "libldap.so*" | sed -e 's/\/usr\///' -e 's/\/libldap.so//') && \
docker-php-ext-configure ldap --with-libdir=$libdir && \
docker-php-ext-install -j$(nproc) ldap
ADD https://github.com/PHPMailer/PHPMailer/archive/v6.2.0.tar.gz /tmp
RUN a2enmod rewrite ssl && a2dissite 000-default default-ssl
EXPOSE 80
EXPOSE 443
COPY www/ /opt/ldap_user_manager
RUN tar -xzf /tmp/v6.2.0.tar.gz -C /opt && mv /opt/PHPMailer-6.2.0 /opt/PHPMailer
COPY entrypoint /usr/local/bin/entrypoint
RUN chmod a+x /usr/local/bin/entrypoint
CMD ["apache2-foreground"]
ENTRYPOINT ["/usr/local/bin/entrypoint"]