2015-12-24 17:17:46 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Shaarli Community
|
|
|
|
|
2016-08-12 21:36:54 +02:00
|
|
|
ENV TERM dumb
|
2015-12-24 17:17:46 +01:00
|
|
|
RUN apt-get update \
|
2016-08-12 21:36:54 +02:00
|
|
|
&& apt-get install --no-install-recommends -y \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
nginx-light \
|
|
|
|
php5-curl \
|
|
|
|
php5-fpm \
|
|
|
|
php5-gd \
|
|
|
|
php5-intl \
|
|
|
|
supervisor \
|
|
|
|
&& apt-get clean
|
2015-12-24 17:17:46 +01:00
|
|
|
|
2016-11-05 20:42:54 +01:00
|
|
|
RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini
|
|
|
|
RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
|
2015-12-24 17:17:46 +01:00
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
|
|
|
|
|
2016-08-12 21:36:54 +02:00
|
|
|
ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
|
|
|
|
RUN chmod 755 /usr/local/bin/composer
|
|
|
|
|
2015-12-24 17:17:46 +01:00
|
|
|
WORKDIR /var/www
|
2016-08-12 21:36:54 +02:00
|
|
|
RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf - \
|
2015-12-24 17:17:46 +01:00
|
|
|
&& mv Shaarli-master shaarli \
|
2016-08-12 21:36:54 +02:00
|
|
|
&& cd shaarli \
|
|
|
|
&& composer --prefer-dist --no-dev install
|
|
|
|
RUN rm -rf html \
|
|
|
|
&& chown -R www-data:www-data .
|
2015-12-24 17:17:46 +01:00
|
|
|
|
|
|
|
VOLUME /var/www/shaarli/data
|
|
|
|
|
|
|
|
EXPOSE 80
|
|
|
|
|
|
|
|
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]
|