forked from lekoder/docker-apache-php-5.3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) · 1.34 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
FROM phusion/baseimage
MAINTAINER Mariusz 'koder' Chwalba <[email protected]>
RUN apt-add-repository -y ppa:hentenaar/php && \
apt-get update && \
apt-get install -y \
wget \
unzip \
apache2-mpm-prefork nodejs npm git ssmtp \
php5=5.3.29-0ubuntu4 \
libapache2-mod-php5=5.3.29-0ubuntu4 \
php5-common=5.3.29-0ubuntu4 \
php5-cli=5.3.29-0ubuntu4 \
php5-mysql=5.3.29-0ubuntu4 \
php5-curl=5.3.29-0ubuntu4 \
&& \
npm install -g npm && \
npm install -g bower && \
ln -s /usr/bin/nodejs /usr/bin/node
COPY apache2.conf /etc/apache2/
COPY syslog-errors.ini /etc/php5/apache2/conf.d/
RUN mkdir /etc/service/apache2
ADD apache2.sh /etc/service/apache2/run
COPY mods-available/* /etc/apache2/mods-available/
# Clean up default installation of apache
RUN a2dismod mpm_event && \
a2enmod mpm_prefork && \
rm -f /etc/apache2/sites-enabled/* && \
rm -f /etc/apache2/sites-available2/* && \
rm -f /etc/apache2/conf-available2/* && \
rm -f /etc/apache2/conf-enabled/* && \
rm -rf /var/www && \
mkdir -p /var/www/web && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /var/www/
ADD install-application.sh /usr/bin/
ONBUILD COPY . /var/www/
ONBUILD RUN /usr/bin/install-application.sh
EXPOSE 80
CMD ["/sbin/my_init"]