From 453f4653c325dc23193e16432170bf634c42e8a2 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Thu, 24 Dec 2015 17:17:46 +0100 Subject: Docker: move Dockerfiles to the main repository Relates to #420 Fixes: - [all] remove Nginx' 'server_name' attribute - [dev] create the phpinfo() script from the Dockerfile Modifications: - [all] remove documentation/guide (to be added to the wiki) - [all] update maintainer information - [prod] differentiate 'master' (:latest) and 'stable' (:stable) images Signed-off-by: VirtualTam --- docker/development/Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docker/development/Dockerfile (limited to 'docker/development/Dockerfile') diff --git a/docker/development/Dockerfile b/docker/development/Dockerfile new file mode 100644 index 00000000..2ed59b89 --- /dev/null +++ b/docker/development/Dockerfile @@ -0,0 +1,28 @@ +FROM debian:jessie +MAINTAINER Shaarli Community + +RUN apt-get update \ + && apt-get install -y \ + nginx-light php5-fpm php5-gd supervisor \ + git nano + +ADD https://getcomposer.org/composer.phar /usr/local/bin/composer +RUN chmod 755 /usr/local/bin/composer + +COPY nginx.conf /etc/nginx/nginx.conf +COPY supervised.conf /etc/supervisor/conf.d/supervised.conf +RUN echo "" > /var/www/index.php + +WORKDIR /var/www +RUN rm -rf html \ + && git clone https://github.com/shaarli/Shaarli.git shaarli \ + && chown -R www-data:www-data . + +WORKDIR /var/www/shaarli +RUN composer install + +VOLUME /var/www/shaarli/data + +EXPOSE 80 + +CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"] -- cgit v1.2.3