diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..9b2e635fff4bf74b78806da52e5dbb580cc7f492 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM wordpress:latest + +# Installer les dépendances nécessaires +RUN apt-get update && \ + apt-get install -y libldap2-dev unzip && \ + rm -rf /var/lib/apt/lists/* + +# Configurer et installer l'extension LDAP pour PHP +RUN docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \ + docker-php-ext-install ldap && \ + docker-php-ext-enable ldap + +# Télécharger et installer le plugin Simple LDAP Login +RUN curl -o /tmp/simple-ldap-login.zip -fSL "https://downloads.wordpress.org/plugin/simple-ldap-login.latest-stable.zip" && \ + mkdir -p /usr/src/wordpress/wp-content/plugins/simple-ldap-login && \ + unzip /tmp/simple-ldap-login.zip -d /usr/src/wordpress/wp-content/plugins/ && \ + rm /tmp/simple-ldap-login.zip \ No newline at end of file