-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
26 lines (22 loc) · 910 Bytes
/
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
FROM php:5.6-apache
# PHP installer args
ENV PHP_EXTRA_CONFIGURE_ARGS --enable-mysqlnd
# Install modules
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install gd mysqli
RUN sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/apache2.conf
RUN a2enmod rewrite
# Add image configuration and scripts
ADD run.sh /run.sh
RUN chmod 755 /*.sh
RUN usermod -u 1000 www-data
RUN touch /var/log/php_errors.log
RUN chmod 777 /var/log/php_errors.log
EXPOSE 80
CMD ["/run.sh"]