Page MenuHomePhabricator
Paste P276

(An Untitled Masterwork)
ActivePublic

Authored by stwalkerster on Aug 20 2020, 10:00 PM.
FROM php:7.4-apache
RUN true \
&& apt-get update \
&& apt-get install --yes --no-install-recommends wget \
&& true
RUN true \
&& wget -O /usr/local/bin/install-php-extensions https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions \
&& sed -i -r \
-e 's@docker-php-ext-configure ldap --with-libdir=lib/\$\(gcc -dumpmachine\)@docker-php-ext-configure ldap --with-libdir=lib/$(gcc -dumpmachine) --with-ldap-sasl@' \
-e 's@buildRequiredPackageLists_volatile="\$buildRequiredPackageLists_volatile libldap2-dev"@buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libldap2-dev libsasl2-dev"@' \
/usr/local/bin/install-php-extensions \
&& ln -s /usr/include/sasl/sasl.h /usr/lib/$(gcc -dumpmachine)/sasl.h \
&& true
RUN true \
&& chmod +x /usr/local/bin/install-php-extensions \
&& install-php-extensions gettext ldap opcache \
&& true
RUN true \
&& wget https://github.com/leenooks/phpLDAPadmin/archive/1.2.5.tar.gz \
&& tar xf 1.2.5.tar.gz --strip 1 \
&& rm 1.2.5.tar.gz \
&& true
RUN true \
&& apt-get remove --yes wget \
&& rm -rf /var/lib/apt/lists/* \
&& rm /usr/local/bin/install-php-extensions \
&& true
RUN true \
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
&& true
VOLUME /var/www/html/config

Event Timeline

stwalkerster created this object with visibility "Public (No Login Required)".