22 lines
704 B
Docker
22 lines
704 B
Docker
FROM debian:stable
|
|
|
|
RUN apt-get -y update && apt-get -y install nginx php5-fpm php5-mysql php-apc supervisor python-pip mysql-client
|
|
RUN pip install supervisor-stdout
|
|
|
|
RUN mkdir userdata
|
|
ADD configuration configuration
|
|
ADD application application
|
|
ADD scripts scripts
|
|
|
|
RUN ln -sf /configuration/supervisord.conf /etc/supervisor/supervisord.conf && \
|
|
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 && \
|
|
ln -sf /configuration/php.ini /etc/php5/fpm/php.ini
|
|
|
|
RUN chown -R www-data:www-data /application
|
|
|
|
EXPOSE 80
|
|
|
|
CMD /usr/bin/supervisord -n
|