-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (19 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM php:7.4.12-fpm-alpine
RUN mkdir /var/moodledata \
&& mkdir /var/moodle_behat_output \
&& chmod 777 /var/moodledata
RUN apk update && apk add --no-cache postgresql-dev icu-dev libzip-dev libpng-dev libxml2-dev libxslt-dev \
$PHPIZE_DEPS \
&& docker-php-ext-configure pgsql \
&& docker-php-ext-configure intl \
&& docker-php-ext-install pgsql pdo_pgsql zip gd soap xmlrpc opcache xsl intl exif
RUN pecl install xdebug-3.0.2 redis-4.2.0 \
&& docker-php-ext-enable xdebug redis \
&& rm -r /tmp/pear
RUN echo "xdebug.mode = debug" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.max_nesting_level = 512" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.client_port = 9001" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
&& echo "xdebug.client_host = host.docker.internal " >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
# Set the WORKDIR to execute commands within the moodle directory. Used with the Moodle install_database.php
# script from the host machine and for Moodle scripts, e.g. purge caches, etc.
WORKDIR /usr/share/nginx/html/moodle