-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
53 lines (39 loc) · 1.94 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
51
52
53
FROM php:5.6.29-apache
MAINTAINER Franco Springveldt "[email protected]"
### SET UP
RUN apt-get -qq update
RUN apt-get -qqy install sudo wget lynx telnet libmcrypt-dev nano make locales bzip2 git zip unzip \
&& docker-php-ext-install iconv mcrypt
RUN echo "LANG=en_US.UTF-8\n" > /etc/default/locale && \
echo "en_US.UTF-8 UTF-8\n" > /etc/locale.gen && \
locale-gen
#RUN yes | pecl install xdebug \
# && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
# && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
# && echo "xdebug.remote_autostart=off" >> /usr/local/etc/php/conf.d/xdebug.ini \
RUN yes | docker-php-ext-install pdo pdo_mysql mysqli
# SilverStripe Apache Configuration
RUN a2enmod rewrite && \
echo "date.timezone = Europe/Berlin" > /etc/apache2/conf-enabled/timezone.ini && \
echo "date.timezone = Europe/Berlin" > /usr/local/etc/php/conf.d/timezone.ini
RUN echo "file_uploads = On" > /usr/local/etc/php/conf.d/uploads.ini && \
echo "memory_limit = 1024M" > /usr/local/etc/php/conf.d/uploads.ini && \
echo "upload_max_filesize = 64M" > /usr/local/etc/php/conf.d/uploads.ini && \
echo "post_max_size = 64M" > /usr/local/etc/php/conf.d/uploads.ini && \
echo "max_execution_time = 600" > /usr/local/etc/php/conf.d/uploads.ini
## - Phpunit, Composer, Phing
RUN wget https://phar.phpunit.de/phpunit-3.7.37.phar && \
chmod +x phpunit-3.7.37.phar && \
mv phpunit-3.7.37.phar /usr/local/bin/phpunit && \
wget https://getcomposer.org/composer.phar && \
chmod +x composer.phar && \
mv composer.phar /usr/local/bin/composer && \
pear channel-discover pear.phing.info && \
pear install phing/phing
## Install mcrypt
#RUN add-apt-repository universe
RUN apt-get install -y php5-mcrypt php5-intl
RUN apt-get update && apt-get install -y zlib1g-dev libicu-dev g++
RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl
RUN php5enmod mcrypt