2014-09-17 22:20:31 -05:00
|
|
|
FROM debian:stable
|
|
|
|
|
2017-01-01 06:12:42 -06:00
|
|
|
RUN apt-get -y update && apt-get -y install nginx php5-fpm php5-mysql php-apc supervisor python-pip mysql-client imagemagick curl wget
|
2014-09-17 22:20:31 -05:00
|
|
|
RUN pip install supervisor-stdout
|
|
|
|
|
2017-01-01 06:12:42 -06:00
|
|
|
ENV MW_VERSION REL1_28
|
|
|
|
ENV MW_SOURCE https://releases.wikimedia.org/mediawiki/1.28/mediawiki-1.28.0.tar.gz
|
|
|
|
ENV SMF_VERSION 2-0-11
|
|
|
|
|
|
|
|
ENV SOURCE_ROOT /application
|
|
|
|
ENV WIKI_SOURCE $SOURCE_ROOT/w
|
|
|
|
ENV FORUMS_SOURCE $SOURCE_ROOT/forums
|
|
|
|
|
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
|
|
|
|
|
2017-01-01 06:12:42 -06:00
|
|
|
# Install composer
|
|
|
|
RUN cd /usr/src && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
|
|
|
|
|
|
# Clone mediawiki source into temp directory, install and then copy over to application dir
|
|
|
|
RUN cd /tmp && wget $MW_SOURCE && tar -xvf mediawiki-*.tar.gz && \
|
|
|
|
cp -Rv mediawiki-*/* $WIKI_SOURCE && rm -rf mediawiki-*
|
|
|
|
|
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
|