]> git.immae.eu Git - github/shaarli/Shaarli.git/blame - docker/production/Dockerfile
Docker: set favicon location in nginx configuration
[github/shaarli/Shaarli.git] / docker / production / Dockerfile
CommitLineData
453f4653
V
1FROM debian:jessie
2MAINTAINER Shaarli Community
3
90f12b12 4ENV TERM dumb
453f4653 5RUN apt-get update \
90f12b12
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
V
16
17COPY nginx.conf /etc/nginx/nginx.conf
18COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
19
90f12b12
V
20ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
21RUN chmod 755 /usr/local/bin/composer
22
453f4653 23WORKDIR /var/www
90f12b12 24RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf - \
453f4653 25 && mv Shaarli-master shaarli \
90f12b12
V
26 && cd shaarli \
27 && composer --prefer-dist --no-dev install
28RUN rm -rf html \
29 && chown -R www-data:www-data .
453f4653
V
30
31VOLUME /var/www/shaarli/data
32
33EXPOSE 80
34
35CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]