2 # - Get Shaarli sources
3 # - Build documentation
4 FROM dalibo/pandocker:stable as docs
6 RUN cd /pandoc/shaarli \
11 # - Resolve PHP dependencies with Composer
12 FROM composer:latest as composer
13 COPY --from=docs /pandoc/shaarli /app/shaarli
15 && composer --prefer-dist --no-dev install
20 LABEL maintainer="Shaarli Community"
24 && apt-get install --no-install-recommends -y \
35 RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini \
36 && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
38 COPY .docker/nginx.conf /etc/nginx/nginx.conf
39 COPY .docker/supervised.conf /etc/supervisor/conf.d/supervised.conf
42 COPY --from=composer /app/shaarli shaarli
44 && chown -R www-data:www-data .
46 VOLUME /var/www/shaarli/data
50 CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]