FROM ubuntu:14.04 MAINTAINER Ilya Stepanov RUN apt-get update && \ apt-get install -y nginx php5-fpm php5-gd curl && \ rm -rf /var/lib/apt/lists/* RUN mkdir -p /var/www RUN cd /var/www && curl http://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz | tar xz --strip 1 RUN chown -R www-data:www-data /var/www RUN echo "cgi.fix_pathinfo = 0;" >> /etc/php5/fpm/php.ini RUN echo "daemon off;" >> /etc/nginx/nginx.conf RUN rm /etc/nginx/sites-enabled/* ADD dokuwiki.conf /etc/nginx/sites-enabled/ EXPOSE 80 VOLUME [ \ "/var/www/data/pages", \ "/var/www/data/meta", \ "/var/www/data/media", \ "/var/www/data/media_attic", \ "/var/www/data/media_meta", \ "/var/www/data/attic", \ "/var/www/conf", \ "/var/log" \ ] CMD /usr/sbin/php5-fpm && /usr/sbin/nginx