You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.6KB

  1. FROM debian:stable
  2. RUN apt-get -y update && apt-get -y install nginx php-fpm php-mysql php-apcu php-mbstring php-xml supervisor python-pip mysql-client imagemagick curl wget
  3. RUN pip install supervisor-stdout
  4. ENV MW_VERSION REL1_29
  5. ENV MW_SOURCE https://releases.wikimedia.org/mediawiki/1.29/mediawiki-1.29.1.tar.gz
  6. ENV SMF_VERSION 2-0-14
  7. ENV SMF_SOURCE https://download.simplemachines.org/index.php/smf_2-0-14_install.tar.gz
  8. ENV SOURCE_ROOT /application
  9. ENV WIKI_SOURCE $SOURCE_ROOT/w
  10. ENV FORUMS_SOURCE $SOURCE_ROOT/forums
  11. RUN mkdir userdata
  12. ADD configuration configuration
  13. ADD application application
  14. ADD scripts scripts
  15. # Install composer
  16. RUN cd /usr/src && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  17. # Clone mediawiki and SMF source into temp directory, install and then copy over to application dir
  18. RUN cd /tmp && wget $MW_SOURCE && tar -xvf mediawiki-*.tar.gz && \
  19. cp -Rv mediawiki-*/* $WIKI_SOURCE && rm -rf mediawiki-* && \
  20. mkdir smf && cd smf && wget $SMF_SOURCE && tar -xvf smf_*.tar.gz && \
  21. rm -rf Settings.php attachments smf_*.tar.gz && cp -Rv * $FORUMS_SOURCE
  22. RUN ln -sf /configuration/supervisord.conf /etc/supervisor/supervisord.conf && \
  23. ln -sf /configuration/nginx.conf /etc/nginx/nginx.conf && \
  24. ln -sf /configuration/php-fpm.conf /etc/php/7.0/fpm/php-fpm.conf && \
  25. ln -sf /configuration/php-fpm-pool.conf /etc/php/7.0/fpm/pool.d/www.conf && \
  26. ln -sf /configuration/php.ini /etc/php/7.0/fpm/php.ini
  27. RUN chown -R www-data:www-data /application
  28. EXPOSE 80
  29. CMD /usr/bin/supervisord -n