-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (33 loc) · 973 Bytes
/
Copy pathDockerfile
File metadata and controls
44 lines (33 loc) · 973 Bytes
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
FROM ubuntu:15.04
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
# RUN apt-get update && apt-get -y install \
# curl \
# sudo
RUN apt-add-repository ppa:phalcon/stable
# RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | sudo bash
RUN apt-get update && apt-get -y install \
curl \
git \
nginx-extras \
php5-cli \
php5-dev \
php5-fpm \
php5-gd \
php5-xdebug \
libpcre3-dev \
gcc \
make \
php5-mysql \
php5-curl \
php5-phalcon
RUN echo 'extension=phalcon.so' >> /etc/php5/fpm/conf.d/30-phalcon.ini
ADD nginx.conf /etc/nginx/nginx.conf
ADD default /etc/nginx/sites-available/default
# forward request and error logs to docker log collector
RUN ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log
# RUN mkdir /var/www
RUN echo "<?php phpinfo(); ?>" > /var/www/index.php
VOLUME ["/var/www"]
EXPOSE 80
CMD service php5-fpm start && nginx