]> git.immae.eu Git - github/shaarli/Shaarli.git/blame_incremental - docker/development/Dockerfile
Merge pull request #683 from ArthurHoaro/plugins/w3ccompliance
[github/shaarli/Shaarli.git] / docker / development / Dockerfile
... / ...
CommitLineData
1FROM debian:jessie
2MAINTAINER Shaarli Community
3
4ENV TERM dumb
5RUN apt-get update \
6 && apt-get install --no-install-recommends -y \
7 ca-certificates \
8 nginx-light \
9 php5-curl \
10 php5-fpm \
11 php5-gd \
12 php5-intl \
13 supervisor \
14 git \
15 nano \
16 && apt-get clean
17
18COPY nginx.conf /etc/nginx/nginx.conf
19COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
20
21ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
22RUN chmod 755 /usr/local/bin/composer
23
24WORKDIR /var/www
25RUN git clone https://github.com/shaarli/Shaarli.git shaarli \
26 && cd shaarli \
27 && composer --prefer-dist install
28RUN rm -rf html \
29 && echo "<?php phpinfo(); ?>" > index.php \
30 && chown -R www-data:www-data .
31
32VOLUME /var/www/shaarli/data
33
34EXPOSE 80
35
36CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]