phpldapadmin

This commit is contained in:
Juan Ferrer 2020-01-19 20:47:41 +01:00
parent 5eec59298a
commit 5ee6e7de33
2 changed files with 26 additions and 0 deletions

23
phpldapadmin/Dockerfile Normal file
View File

@ -0,0 +1,23 @@
FROM debian:stretch-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN echo "deb http://ftp.es.debian.org/debian stretch-backports main" \
> /etc/apt/sources.list.d/backoprts.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
apache2 \
libapache2-mod-php \
phpldapadmin \
php-xml \
&& rm -rf /var/lib/apt/lists/* \
&& . /etc/apache2/envvars \
&& ln -sfT /dev/stderr "$APACHE_LOG_DIR/error.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/access.log" \
&& ln -sfT /dev/stdout "$APACHE_LOG_DIR/other_vhosts_access.log"
COPY apache.conf /etc/apache2/sites-available/phpldapadmin.conf
RUN a2ensite phpldapadmin \
&& a2dissite 000-default
CMD ["apachectl", "-D", "FOREGROUND"]

3
phpldapadmin/apache.conf Normal file
View File

@ -0,0 +1,3 @@
<VirtualHost *:80>
DocumentRoot /usr/share/phpldapadmin/htdocs/
</VirtualHost>