]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - docker/production/stable/Dockerfile
Docker: increase maximum file upload size to 10 MiB
[github/shaarli/Shaarli.git] / docker / production / stable / Dockerfile
CommitLineData
453f4653
V
1FROM debian:jessie
2MAINTAINER Shaarli Community
3
665279ec 4ENV TERM dumb
453f4653 5RUN apt-get update \
665279ec
V
6 && apt-get install --no-install-recommends -y \
7 ca-certificates \
8 curl \
9 nginx-light \
10 php5-curl \
11 php5-fpm \
12 php5-gd \
13 php5-intl \
14 supervisor \
15 && apt-get clean
453f4653 16
68579ad5
V
17RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini
18RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini
453f4653
V
19COPY nginx.conf /etc/nginx/nginx.conf
20COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
21
665279ec
V
22ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
23RUN chmod 755 /usr/local/bin/composer
24
453f4653 25WORKDIR /var/www
665279ec 26RUN curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xzf - \
7329118e 27 && mv Shaarli-stable shaarli \
665279ec
V
28 && cd shaarli \
29 && composer --prefer-dist --no-dev install
453f4653 30RUN rm -rf html \
665279ec 31 && chown -R www-data:www-data .
453f4653
V
32
33VOLUME /var/www/shaarli/data
34
35EXPOSE 80
36
37CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]