aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/production/stable/Dockerfile
blob: 2bb3948ce6d369ce8cd5a1291be6e7d56e6b57f3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM debian:jessie
MAINTAINER Shaarli Community

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

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

WORKDIR /var/www
RUN rm -rf html \
    && curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xvzf - \
    && mv Shaarli-stable shaarli \
    && chown -R www-data:www-data shaarli

VOLUME /var/www/shaarli/data

EXPOSE 80

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