2021-01-16 20:44:14 +01:00
|
|
|
FROM php:7-apache-buster
|
2021-02-06 22:00:39 +01:00
|
|
|
WORKDIR /home/
|
2021-01-16 20:44:14 +01:00
|
|
|
RUN sed -i 's/deb.debian.org/ftp.de.debian.org/g' /etc/apt/sources.list
|
|
|
|
RUN apt-get -q -y update && apt-get -q -y upgrade
|
|
|
|
RUN apt-get -q -y install default-libmysqlclient-dev wget mariadb-server
|
|
|
|
RUN apt-get -q -y install libpng-dev libicu-dev bibutils libzip-dev
|
|
|
|
RUN apt-get -q -y install libldap2-dev
|
|
|
|
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
|
|
|
|
RUN docker-php-ext-install gd && docker-php-ext-enable gd
|
|
|
|
RUN docker-php-ext-install gettext && docker-php-ext-enable gettext
|
|
|
|
RUN docker-php-ext-install intl && docker-php-ext-enable intl
|
|
|
|
RUN docker-php-ext-install zip && docker-php-ext-enable zip
|
|
|
|
RUN docker-php-ext-install ldap && docker-php-ext-enable ldap
|
2021-06-05 12:56:42 +02:00
|
|
|
|
2021-01-16 20:44:14 +01:00
|
|
|
COPY create.sql .
|
|
|
|
COPY docker-entrypoint-wikindx /usr/local/bin/
|
2021-01-17 16:44:31 +01:00
|
|
|
|
|
|
|
RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini
|
|
|
|
RUN sed -i 's/post_max_size.=.*/post_max_size = 100M/' /usr/local/etc/php/php.ini
|
|
|
|
RUN sed -i 's/upload_max_filesize.=.*/upload_max_filesize = 100M/' /usr/local/etc/php/php.ini
|
2021-01-16 20:44:14 +01:00
|
|
|
RUN echo "mysql.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini
|
|
|
|
RUN echo "mysqli.default_socket = /var/run/mysqld/mysqld.sock" >> /usr/local/etc/php/conf.d/docker-php-ext-mysqli.ini
|
|
|
|
|
|
|
|
VOLUME ["/var/lib/mysql"]
|
2021-02-06 22:00:39 +01:00
|
|
|
VOLUME ["/home/wikindx"]
|
2021-01-16 20:44:14 +01:00
|
|
|
|
2021-06-05 12:56:42 +02:00
|
|
|
RUN mkdir /home/wikindx
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
RUN wget -O wikindx.tar.bz2 https://phoenixnap.dl.sourceforge.net/project/wikindx/6.4.9/wikindx_6.4.9.tar.bz2
|
|
|
|
RUN tar jxf wikindx.tar.bz2
|
|
|
|
|
2021-01-16 20:44:14 +01:00
|
|
|
ENTRYPOINT ["docker-entrypoint-wikindx"]
|