aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/development/Dockerfile
blob: 0c19b0855d0b9d282e04e906cce7d254bab2af3f (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
29
30
31
32
33
34
35
36
FROM debian:jessie
MAINTAINER Shaarli Community

ENV TERM dumb
RUN apt-get update \
    && apt-get install --no-install-recommends -y \
       ca-certificates \
       nginx-light \
       php5-curl \
       php5-fpm \
       php5-gd \
       php5-intl \
       supervisor \
       git \
       nano \
    && apt-get clean

COPY nginx.conf /etc/nginx/nginx.conf
COPY supervised.conf /etc/supervisor/conf.d/supervised.conf

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

WORKDIR /var/www
RUN git clone https://github.com/shaarli/Shaarli.git shaarli \
    && cd shaarli \
    && composer --prefer-dist install
RUN rm -rf html \
    && echo "<?php phpinfo(); ?>" > index.php \
    && chown -R www-data:www-data .

VOLUME /var/www/shaarli/data

EXPOSE 80

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