-
Notifications
You must be signed in to change notification settings - Fork 67
/
Dockerfile
50 lines (41 loc) · 1.55 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM php:7.0-apache
# add mcript and gd extension for php
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libcurl4-gnutls-dev \
libmcrypt-dev \
locales \
graphicsmagick \
mysql-client \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) mcrypt pdo_mysql exif zip gd opcache
# set recommended PHP.ini settings
# see http://docs.filerun.com/php_configuration
COPY filerun-optimization.ini /usr/local/etc/php/conf.d/
# Install Ioncube
RUN curl -O http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \
&& tar xvfz ioncube_loaders_lin_x86-64.tar.gz \
&& PHP_EXT_DIR=$(php-config --extension-dir) \
&& cp "ioncube/ioncube_loader_lin_7.0.so" $PHP_EXT_DIR \
&& echo "zend_extension=ioncube_loader_lin_7.0.so" >> /usr/local/etc/php/conf.d/00_ioncube_loader_lin_7.0.ini \
&& rm -rf ioncube ioncube_loaders_lin_x86-64.tar.gz
#RUN /usr/sbin/a2enmod rewrite
# Install filerun
RUN curl -o /filerun.zip -L https://www.filerun.com/download-latest \
&& mkdir /user-files \
&& chown www-data:www-data /user-files
COPY db.sql /filerun.setup.sql
COPY autoconfig.php /
VOLUME ["/var/www/html", "/user-files"]
COPY ./entrypoint.sh /
COPY ./wait-for-it.sh /
COPY ./import-db.sh /
RUN chmod +x /wait-for-it.sh
RUN chmod +x /import-db.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["apache2-foreground"]