Skip to content
Snippets Groups Projects
Commit 3b855b00 authored by BENYAHIA Abderrahmane anis's avatar BENYAHIA Abderrahmane anis
Browse files

Dockerfile

parent e1dbc31d
Branches
No related tags found
No related merge requests found
Pipeline #47532 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment