2015-12-24 17:17:46 +01:00
|
|
|
FROM debian:jessie
|
|
|
|
MAINTAINER Shaarli Community
|
|
|
|
|
2016-08-14 16:20:06 +02:00
|
|
|
ENV TERM dumb
|
2015-12-24 17:17:46 +01:00
|
|
|
RUN apt-get update \
|
2016-08-14 16:20:06 +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
|
|
|
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
|
|
|
|
|
2016-08-14 16:20:06 +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-14 16:20:06 +02:00
|
|
|
RUN curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xzf - \
|
|
|
|
&& mv Shaarli-stable shaarli
|
|
|
|
&& cd shaarli \
|
|
|
|
&& composer --prefer-dist --no-dev install
|
2015-12-24 17:17:46 +01:00
|
|
|
RUN rm -rf html \
|
2016-08-14 16:20:06 +02:00
|
|
|
&& 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"]
|