mirror of
https://github.com/mykitserver/docker-limesurvey.git
synced 2025-12-06 16:39:11 +01:00
Add OS and PHP dependencies
This commit is contained in:
@@ -1,10 +1,36 @@
|
|||||||
FROM php:7.2-apache
|
FROM php:7.2-apache
|
||||||
|
|
||||||
|
# Install OS dependencies
|
||||||
|
RUN apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install --no-install-recommends -y \
|
||||||
|
libldap2-dev \
|
||||||
|
libmagickwand-dev \
|
||||||
|
imagemagick-common \
|
||||||
|
libmagickcore-dev \
|
||||||
|
imagemagick \
|
||||||
|
libc-client-dev \
|
||||||
|
libkrb5-dev \
|
||||||
|
libpq-dev \
|
||||||
|
&& apt-get autoclean; apt-get autoremove && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Link LDAP library for PHP ldap extension
|
||||||
|
RUN ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
|
||||||
|
|
||||||
|
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
|
||||||
|
|
||||||
# Install PHP Plugins
|
# Install PHP Plugins
|
||||||
RUN docker-php-ext-install ldap \
|
RUN docker-php-ext-install -j5 \
|
||||||
&& docker-php-ext-install imap \
|
ldap \
|
||||||
&& docker-php-ext-install mbstring \
|
imap \
|
||||||
&& docker-php-ext-install zip \
|
mbstring \
|
||||||
|
zip \
|
||||||
|
gd \
|
||||||
|
pdo \
|
||||||
|
pdo_mysql \
|
||||||
|
pgsql \
|
||||||
|
pdo_pgsql
|
||||||
|
|
||||||
# Download, unzip and chmod of LimeSurvey
|
# Download, unzip and chmod of LimeSurvey
|
||||||
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
|
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
|
||||||
|
|||||||
@@ -1,10 +1,36 @@
|
|||||||
FROM php:7.2-fpm
|
FROM php:7.2-fpm
|
||||||
|
|
||||||
|
# Install OS dependencies
|
||||||
|
RUN apt-get update && \
|
||||||
|
DEBIAN_FRONTEND=noninteractive \
|
||||||
|
apt-get install --no-install-recommends -y \
|
||||||
|
libldap2-dev \
|
||||||
|
libmagickwand-dev \
|
||||||
|
imagemagick-common \
|
||||||
|
libmagickcore-dev \
|
||||||
|
imagemagick \
|
||||||
|
libc-client-dev \
|
||||||
|
libkrb5-dev \
|
||||||
|
libpq-dev \
|
||||||
|
&& apt-get autoclean; apt-get autoremove && \
|
||||||
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Link LDAP library for PHP ldap extension
|
||||||
|
RUN ln -fs /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/
|
||||||
|
|
||||||
|
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
|
||||||
|
|
||||||
# Install PHP Plugins
|
# Install PHP Plugins
|
||||||
RUN docker-php-ext-install ldap \
|
RUN docker-php-ext-install -j5 \
|
||||||
&& docker-php-ext-install imap \
|
ldap \
|
||||||
&& docker-php-ext-install mbstring \
|
imap \
|
||||||
&& docker-php-ext-install zip \
|
mbstring \
|
||||||
|
zip \
|
||||||
|
gd \
|
||||||
|
pdo \
|
||||||
|
pdo_mysql \
|
||||||
|
pgsql \
|
||||||
|
pdo_pgsql
|
||||||
|
|
||||||
# Download, unzip and chmod of LimeSurvey
|
# Download, unzip and chmod of LimeSurvey
|
||||||
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
|
RUN curl -L https://github.com/LimeSurvey/LimeSurvey/archive/3.0.2+180110.tar.gz -o lime.tar.gz && \
|
||||||
|
|||||||
Reference in New Issue
Block a user