This repository has been archived by the owner on May 31, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
59 lines (48 loc) · 1.54 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
54
55
56
57
58
59
FROM debian:jessie
MAINTAINER Jean-Avit Promis "[email protected]"
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install git apache2 libapache2-mod-php5 php5 php5-cli php5-curl php5-mysql php5-intl php5-mcrypt curl npm && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
##Bower
##RUN apt-get -yf install npm
RUN ln -s /usr/bin/nodejs /usr/bin/node
##RUN npm install -g bower
##Tools
RUN npm install -g less && \
npm install -g uglify-js && \
npm install -g uglifycss && \
npm install -g bower
##Composer
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
php /usr/local/bin/composer self-update
##Apache
RUN a2enmod rewrite
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_PID_FILE /var/run/apache2/apache2.pid
RUN usermod -u 1000 www-data
RUN groupmod -g 1000 www-data
COPY phpci.conf /etc/apache2/sites-available/phpci.conf
RUN a2ensite phpci
RUN a2dissite 000-default
##PHP date.timezone
RUN echo "date.timezone = UTC" >> /etc/php5/cli/php.ini
RUN echo "date.timezone = UTC" >> /etc/php5/apache2/php.ini
##PHPCI
WORKDIR /var/www/
COPY config.yml /var/www/config.yml
COPY local_vars.php /var/www/local_vars.php
COPY start.sh /start.sh
RUN chmod +x /start.sh
COPY cron.sh /cron.sh
RUN chmod +x /cron.sh
COPY init.sh /init.sh
RUN chmod +x /init.sh
RUN chown -R www-data: /var/www/
ENV PHPCI_VERSION 1.7.1
VOLUME ["/var/log"]
EXPOSE 80
CMD /start.sh