forked from halkyon/docker-silverstripe-hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (27 loc) · 1.22 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
FROM ubuntu:trusty
MAINTAINER Sean Harvey <sean@silverstripe.com>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update
RUN apt-get -qqy install wget curl
RUN wget --quiet -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 -qq update
RUN apt-get -qqy install supervisor mariadb-server nginx hhvm libgmp-dev libmemcached-dev
RUN /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60
RUN wget --quiet https://getcomposer.org/composer.phar
RUN chmod +x composer.phar
RUN mv composer.phar /usr/local/bin/composer
ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN chown root:root /etc/supervisor/conf.d/supervisord.conf
ADD nginx-hhvm.conf /etc/nginx/hhvm.conf
RUN chown root:root /etc/nginx/hhvm.conf
### SILVERSTRIPE START ###
ADD nginx-silverstripe.conf /etc/nginx/silverstripe.conf
RUN chown root:root /etc/nginx/silverstripe.conf
ADD _ss_environment.php /var/_ss_environment.php
RUN chown root:root /var/_ss_environment.php
ADD nginx-default /etc/nginx/sites-available/default
RUN chown root:root /etc/nginx/sites-available/default
### SILVERSTRIPE END ###
EXPOSE 80
CMD ["/usr/bin/supervisord"]