FROM mediawiki:lts

RUN apt update && apt install -y xpdf

# Eventually you need tu build ghostscript from source

RUN apt install -y ghostscript

# Eventually you need tu build Imagick from source

RUN apt install -y imagemagick

# ffmpeg für video support

RUN apt install -y ffmpeg

# Install Dependencies for Maps support

#RUN curl https://getcomposer.org/composer-2.phar > composer.phar && mv composer.phar /usr/local/bin/composer && chmod +x /usr/local/bin/composer
#RUN cd /var/www/html && COMPOSER=composer.local.json composer require --no-update mediawiki/maps:~8.0
#RUN composer update
#RUN cd /var/www/html && composer update mediawiki/maps --no-dev -o -n

# Start from the webserver neccessary or not? Test from 23.04.2021 -> not needed
#CMD ["apache2-foreground"]