-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (28 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
36 lines (28 loc) · 1.02 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
FROM phusion/baseimage:latest
MAINTAINER Robert Crandall <offlinegeek@outlook.com>
# Install base packages
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install \
curl \
apache2 \
libapache2-mod-php5 \
php5-mysql \
php5-mcrypt \
php5-gd \
php5-curl \
php-pear \
php-apc && \
rm -rf /var/lib/apt/lists/* && \
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN /usr/sbin/php5enmod mcrypt
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini
ENV ALLOW_OVERRIDE **False**
# Copy config files to a temporary location, used for restoring default files
RUN mkdir /tmp/php5/ && mkdir /tmp/apache2/
RUN cp -a /etc/php5/. /tmp/php5/ && cp -a /etc/apache2/. /tmp/apache2/
# Add image configuration and scripts
ADD startup.sh /startup.sh
RUN chmod 755 /*.sh
EXPOSE 80
CMD ["/startup.sh"]