]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - docker/production/stable/Dockerfile
2bb3948ce6d369ce8cd5a1291be6e7d56e6b57f3
[github/shaarli/Shaarli.git] / docker / production / stable / Dockerfile
1 FROM debian:jessie
2 MAINTAINER Shaarli Community
3
4 RUN apt-get update \
5 && apt-get install -y curl nginx-light php5-fpm php5-gd supervisor
6
7 COPY nginx.conf /etc/nginx/nginx.conf
8 COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
9
10 WORKDIR /var/www
11 RUN rm -rf html \
12 && curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xvzf - \
13 && mv Shaarli-stable shaarli \
14 && chown -R www-data:www-data shaarli
15
16 VOLUME /var/www/shaarli/data
17
18 EXPOSE 80
19
20 CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]