2015-12-28 06:22:35 +02:00
|
|
|
#
|
|
|
|
# Dockerfile for moodle
|
|
|
|
#
|
|
|
|
# - https://docs.moodle.org/30/en/Step-by-step_Installation_Guide_for_Ubuntu
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM php:5.6-apache
|
2016-05-01 03:06:20 +02:00
|
|
|
MAINTAINER kev<noreply@easypi.info>
|
2015-12-28 06:22:35 +02:00
|
|
|
|
|
|
|
RUN a2enmod rewrite
|
|
|
|
|
|
|
|
RUN set -xe \
|
|
|
|
&& apt-get update \
|
2015-12-28 08:55:31 +02:00
|
|
|
&& apt-get install -y clamav \
|
2015-12-28 06:22:35 +02:00
|
|
|
graphviz \
|
2015-12-28 08:55:31 +02:00
|
|
|
libicu52 \
|
|
|
|
libicu-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
libjpeg62-turbo \
|
|
|
|
libjpeg-dev \
|
2015-12-28 08:55:31 +02:00
|
|
|
libldap-2.4-2 \
|
|
|
|
libldap2-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
libmcrypt4 \
|
|
|
|
libmcrypt-dev \
|
2015-12-28 08:55:31 +02:00
|
|
|
libpng12-0 \
|
|
|
|
libpng12-dev \
|
|
|
|
libpspell-dev \
|
|
|
|
libxml2 \
|
|
|
|
libxml2-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
|
2015-12-28 08:55:31 +02:00
|
|
|
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
|
2015-12-28 06:22:35 +02:00
|
|
|
&& docker-php-ext-install gd \
|
|
|
|
intl \
|
|
|
|
ldap \
|
|
|
|
mcrypt \
|
|
|
|
mbstring \
|
|
|
|
mysqli \
|
|
|
|
opcache \
|
|
|
|
pspell \
|
|
|
|
xmlrpc \
|
|
|
|
zip \
|
2015-12-28 08:55:31 +02:00
|
|
|
&& apt-get remove -y libicu-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
libjpeg-dev \
|
2015-12-28 08:55:31 +02:00
|
|
|
libldap2-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
libmcrypt-dev \
|
2015-12-28 08:55:31 +02:00
|
|
|
libpng12-dev \
|
|
|
|
libpspell-dev \
|
|
|
|
libxml2-dev \
|
2015-12-28 06:22:35 +02:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2016-07-08 14:46:26 +02:00
|
|
|
ENV MOODLE_VERSION 3.1
|
|
|
|
ENV MOODLE_FILE moodle-${MOODLE_VERSION}.tgz
|
2016-07-08 20:23:30 +02:00
|
|
|
ENV MOODLE_URL https://download.moodle.org/download.php/direct/stable31/${MOODLE_FILE}
|
2016-07-08 14:46:26 +02:00
|
|
|
ENV MOODLE_MD5 970a17ea97d2a1dc2354fd975206f531
|
2015-12-28 06:22:35 +02:00
|
|
|
|
|
|
|
RUN curl -sSL ${MOODLE_URL} -o ${MOODLE_FILE} \
|
2016-07-08 14:46:26 +02:00
|
|
|
&& echo "${MOODLE_MD5} ${MOODLE_FILE}" | md5sum -c \
|
2015-12-28 06:22:35 +02:00
|
|
|
&& tar xzf ${MOODLE_FILE} --strip 1 \
|
|
|
|
&& rm ${MOODLE_FILE} \
|
|
|
|
&& chown -R www-data:www-data .
|