2 MAINTAINER Shaarli Community
6 && apt-get install --no-install-recommends -y \
17 RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini
18 RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
19 COPY nginx.conf /etc/nginx/nginx.conf
20 COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
22 ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
23 RUN chmod 755 /usr/local/bin/composer
26 RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf - \
27 && mv Shaarli-master shaarli \
29 && composer --prefer-dist --no-dev install
31 && chown -R www-data:www-data .
33 VOLUME /var/www/shaarli/data
37 CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]