From e3a3cc0da85925d08df29a2146b54b4159d5a14b Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Tue, 3 Oct 2017 20:07:46 +0200 Subject: docker: rename resources for the stable image Signed-off-by: VirtualTam --- docker/debian/Dockerfile.stable | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 docker/debian/Dockerfile.stable (limited to 'docker/debian/Dockerfile.stable') diff --git a/docker/debian/Dockerfile.stable b/docker/debian/Dockerfile.stable new file mode 100644 index 00000000..fc9588b0 --- /dev/null +++ b/docker/debian/Dockerfile.stable @@ -0,0 +1,37 @@ +FROM debian:jessie +MAINTAINER Shaarli Community + +ENV TERM dumb +RUN apt-get update \ + && apt-get install --no-install-recommends -y \ + ca-certificates \ + curl \ + nginx-light \ + php5-curl \ + php5-fpm \ + php5-gd \ + php5-intl \ + supervisor \ + && apt-get clean + +RUN sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php5/fpm/php.ini +RUN sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php5/fpm/php.ini +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 curl -L https://github.com/shaarli/Shaarli/archive/stable.tar.gz | tar xzf - \ + && mv Shaarli-stable shaarli \ + && cd shaarli \ + && composer --prefer-dist --no-dev install +RUN rm -rf html \ + && chown -R www-data:www-data . + +VOLUME /var/www/shaarli/data + +EXPOSE 80 + +CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] -- cgit v1.2.3