Skip to content

Commit

Permalink
Disable nginx upstart
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jul 22, 2015
1 parent bff78b3 commit 537e2eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN add-apt-repository -y ppa:ondrej/php5
RUN add-apt-repository -y ppa:nginx/stable
RUN apt-get update
RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y --force-yes php5-cli php5-fpm php5-mysql php5-pgsql php5-sqlite php5-curl\
php5-gd php5-mcrypt php5-intl php5-imap php5-tidy
php5-gd php5-mcrypt php5-intl php5-imap php5-tidy php-apc

RUN sed -i "s/;date.timezone =.*/date.timezone = UTC/" /etc/php5/fpm/php.ini
RUN sed -i "s/;date.timezone =.*/date.timezone = UTC/" /etc/php5/cli/php.ini
Expand All @@ -30,8 +30,13 @@ RUN sed -i -e "s/;daemonize\s*=\s*yes/daemonize = no/g" /etc/php5/fpm/php-fpm.co
RUN sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/" /etc/php5/fpm/php.ini

ADD build/ioncube-install.sh /root/ioncube-install.sh

RUN update-rc.d -f php5-fpm remove
RUN echo manual | sudo tee /etc/init/php-fpm.override

RUN update-rc.d -f nginx remove
RUN echo manual | sudo tee /etc/init/nginx.override

RUN mkdir -p /var/www
ADD build/default /etc/nginx/sites-available/default
RUN mkdir /etc/service/nginx
Expand Down

0 comments on commit 537e2eb

Please sign in to comment.