mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
c548c06086
Removed extension installs for already installed things. Removed tidy build bits. Ensured it ran via quick build and test
17 lines
749 B
Docker
17 lines
749 B
Docker
FROM php:7.4-apache
|
|
|
|
ENV APACHE_DOCUMENT_ROOT /app/public
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update -y \
|
|
&& apt-get install -y git zip unzip libpng-dev libldap2-dev wait-for-it \
|
|
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu \
|
|
&& docker-php-ext-install pdo_mysql gd ldap \
|
|
&& a2enmod rewrite \
|
|
&& sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
|
|
&& sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf \
|
|
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
|
|
&& php composer-setup.php \
|
|
&& mv composer.phar /usr/bin/composer \
|
|
&& php -r "unlink('composer-setup.php');"
|