2014-09-17 22:20:31 -05:00
|
|
|
FROM debian:stable
|
|
|
|
|
2016-11-13 20:44:25 -06:00
|
|
|
RUN apt-get -y update && apt-get -y install nginx php5-fpm php5-mysql php-apc supervisor python-pip mysql-client imagemagick
|
2014-09-17 22:20:31 -05:00
|
|
|
RUN pip install supervisor-stdout
|
|
|
|
|
2016-08-08 22:57:33 -05:00
|
|
|
RUN mkdir userdata
|
2014-09-17 23:30:32 -05:00
|
|
|
ADD configuration configuration
|
|
|
|
ADD application application
|
2014-09-17 22:20:31 -05:00
|
|
|
ADD scripts scripts
|
|
|
|
|
2016-08-07 03:03:38 -05:00
|
|
|
RUN ln -sf /configuration/supervisord.conf /etc/supervisor/supervisord.conf && \
|
2014-09-17 22:20:31 -05:00
|
|
|
ln -sf /configuration/nginx.conf /etc/nginx/nginx.conf && \
|
|
|
|
ln -sf /configuration/php-fpm.conf /etc/php5/fpm/php-fpm.conf && \
|
|
|
|
ln -sf /configuration/php-fpm-pool.conf /etc/php5/fpm/pool.d/www.conf && \
|
2016-08-07 03:03:38 -05:00
|
|
|
ln -sf /configuration/php.ini /etc/php5/fpm/php.ini
|
2016-08-01 01:24:18 -05:00
|
|
|
|
|
|
|
RUN chown -R www-data:www-data /application
|
2014-09-17 22:20:31 -05:00
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD /usr/bin/supervisord -n
|