aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/development/Dockerfile
blob: 2ed59b89d5f37d0b44341c451376c1a1ca65e385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM debian:jessie
MAINTAINER Shaarli Community

RUN apt-get update \
    && apt-get install -y \
       nginx-light php5-fpm php5-gd supervisor \
       git nano

ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
RUN chmod 755 /usr/local/bin/composer

COPY nginx.conf /etc/nginx/nginx.conf
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
RUN echo "<?php phpinfo(); ?>" > /var/www/index.php

WORKDIR /var/www
RUN rm -rf html \
    && git clone https://github.com/shaarli/Shaarli.git shaarli \
    && chown -R www-data:www-data .

WORKDIR /var/www/shaarli
RUN composer install

VOLUME /var/www/shaarli/data

EXPOSE 80

CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]