-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (43 loc) · 2.04 KB
/
Dockerfile
File metadata and controls
52 lines (43 loc) · 2.04 KB
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
FROM eboraas/apache-php
MAINTAINER merkl@proudsourcing.de
ENV DEBIAN_FRONTEND noninteractive
ENV HOME /root
# timezone / date
RUN echo "Europe/Berlin" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
# install packages
RUN apt-get update && \
apt-get -y upgrade --fix-missing && \
apt-get install -y --force-yes \
less vim wget unzip rsync mysql-client git \
php-pear php5-cli php5-cgi php5-common php5-curl php5-gd php5-imap php5-xmlrpc php5-dev php5-memcache php5-mcrypt \
jpegoptim optipng \
postfix && \
apt-get clean && \
echo "export TERM=xterm" >> /root/.bashrc
# install ioncube
RUN mkdir /tmp/ioncube && \
cd /tmp/ioncube && \
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz && \
tar xvf ioncube_loaders_lin_x86-64.tar.gz && \
cd `php -i | grep extension_dir | cut -d' ' -f 5` && \
cp /tmp/ioncube/ioncube/ioncube_loader_lin_5.6.so . && \
echo zend_extension=ioncube_loader_lin_5.6.so > /etc/php5/apache2/conf.d/00-ioncube.ini && \
rm -rf /tmp/ioncube/
# install zend guard loader
RUN mkdir /tmp/zendguardloader && \
cd /tmp/zendguardloader && \
wget http://downloads.zend.com/guard/7.0.0/zend-loader-php5.6-linux-x86_64.tar.gz && \
tar xvf zend-loader-php5.6-linux-x86_64.tar.gz && \
cd `php -i | grep extension_dir | cut -d' ' -f 5` && \
cp /tmp/zendguardloader/zend-loader-php5.6-linux-x86_64/ZendGuardLoader.so . && \
cp /tmp/zendguardloader/zend-loader-php5.6-linux-x86_64/opcache.so . && \
echo zend_extension=ZendGuardLoader.so > /etc/php5/apache2/conf.d/10-zendguardloader.ini && \
echo zend_extension=opcache.so > /etc/php5/apache2/conf.d/20-zendopcache.ini && \
rm -rf /tmp/zendguardloader/
# enable apache modules
RUN /usr/sbin/a2enmod rewrite && /usr/sbin/a2enmod headers && /usr/sbin/a2enmod expires
# use own vhost configuration
COPY ./000-default.conf /etc/apache2/sites-available/000-default.conf
COPY ./default-ssl.conf /etc/apache2/sites-available/default-ssl.conf
COPY ./ps_entrypoint.sh /
CMD ["/bin/sh", "/ps_entrypoint.sh"]