]> BookStack Code Mirror - bookstack/blob - dev/docker/Dockerfile
Added testing for our request method overrides
[bookstack] / dev / docker / Dockerfile
1 FROM php:8.1-apache
2
3 ENV APACHE_DOCUMENT_ROOT /app/public
4 WORKDIR /app
5
6 # Install additional dependacnies and configure apache
7 RUN apt-get update -y \
8     && apt-get install -y git zip unzip libpng-dev libldap2-dev libzip-dev wait-for-it \
9     && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
10     && docker-php-ext-install pdo_mysql gd ldap zip \
11     && pecl install xdebug \
12     && docker-php-ext-enable xdebug \
13     && a2enmod rewrite \
14     && sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
15     && sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf
16
17 # Install composer
18 RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
19     && php composer-setup.php \
20     && mv composer.phar /usr/bin/composer \
21     && php -r "unlink('composer-setup.php');"
22
23 # Use the default production configuration and update it as required
24 RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
25     && sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"
Morty Proxy This is a proxified and sanitized view of the page, visit original site.