Upload files to "/"
This commit is contained in:
+19
@@ -11,6 +11,25 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
slapd ldap-utils gnutls-bin ssl-cert ca-certificates schema2ldif vim mc && apt-get clean
|
||||
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
# APACHE + PHP + everything phpLDAPadmin needs
|
||||
# ──────────────────────────────────────────────────────────────
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
apache2 \
|
||||
php libapache2-mod-php \
|
||||
php-ldap php-mbstring php-xml php-curl php-intl wget \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Enable required Apache modules
|
||||
RUN a2enmod rewrite headers ssl
|
||||
|
||||
# Use mpm_prefork (required for PHP)
|
||||
RUN a2dismod mpm_event && a2enmod mpm_prefork
|
||||
|
||||
# Clean up default Apache site
|
||||
RUN rm -rf /var/www/html/* && \
|
||||
echo "<?php phpinfo(); ?>" > /var/www/html/info.php
|
||||
|
||||
# preconfigure slapd installation without using systemd
|
||||
RUN echo "slapd slapd/password1 password admin" | debconf-set-selections && \
|
||||
echo "slapd slapd/password2 password admin" | debconf-set-selections && \
|
||||
|
||||
Reference in New Issue
Block a user