forked from kasperisager/php-dockerized
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (33 loc) · 914 Bytes
/
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
FROM tutum/nginx:latest
# Only use stable sources
RUN rm -rf /etc/apt/sources.list.d/proposed.list
# Install packages
RUN apt-get update
RUN apt-get install -y \
supervisor \
curl \
wget \
php5-fpm \
php5-mysql \
php5-mcrypt \
php5-gd \
php5-memcached \
php5-curl \
php5-xdebug
# Install HHVM
RUN wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | apt-key add -
RUN echo deb http://dl.hhvm.com/ubuntu trusty main | tee /etc/apt/sources.list.d/hhvm.list
RUN apt-get update
RUN apt-get install -y hhvm
# Create required directories
RUN mkdir -p /var/log/supervisor
RUN mkdir -p /etc/nginx
RUN mkdir -p /var/run/php5-fpm
RUN mkdir -p /var/run/hhvm
# Add configuration files
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ADD php.ini /etc/php5/fpm/conf.d/40-custom.ini
# Expose volumes
VOLUME ["/var/www", "/etc/nginx/sites-enabled"]
EXPOSE 80 9000
CMD ["/usr/bin/supervisord"]