]>
Commit | Line | Data |
---|---|---|
453f4653 V |
1 | FROM debian:jessie |
2 | MAINTAINER Shaarli Community | |
3 | ||
2945434b | 4 | ENV TERM dumb |
453f4653 | 5 | RUN apt-get update \ |
2945434b V |
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 | |
453f4653 V |
17 | |
18 | COPY nginx.conf /etc/nginx/nginx.conf | |
19 | COPY supervised.conf /etc/supervisor/conf.d/supervised.conf | |
2945434b V |
20 | |
21 | ADD https://getcomposer.org/composer.phar /usr/local/bin/composer | |
22 | RUN chmod 755 /usr/local/bin/composer | |
453f4653 V |
23 | |
24 | WORKDIR /var/www | |
2945434b V |
25 | RUN git clone https://github.com/shaarli/Shaarli.git shaarli \ |
26 | && cd shaarli \ | |
27 | && composer --prefer-dist install | |
453f4653 | 28 | RUN rm -rf html \ |
2945434b | 29 | && echo "<?php phpinfo(); ?>" > index.php \ |
453f4653 V |
30 | && chown -R www-data:www-data . |
31 | ||
453f4653 V |
32 | VOLUME /var/www/shaarli/data |
33 | ||
34 | EXPOSE 80 | |
35 | ||
36 | CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] |