aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker/development/Dockerfile
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-12-24 17:17:46 +0100
committerVirtualTam <virtualtam@flibidi.net>2016-01-02 19:01:33 +0100
commit453f4653c325dc23193e16432170bf634c42e8a2 (patch)
treee74568a125834e977725fe992f458e7739d2c57a /docker/development/Dockerfile
parent0baf7842fc0cf4cbd5ca2b8c5ae6dc7a59c07700 (diff)
downloadShaarli-453f4653c325dc23193e16432170bf634c42e8a2.tar.gz
Shaarli-453f4653c325dc23193e16432170bf634c42e8a2.tar.zst
Shaarli-453f4653c325dc23193e16432170bf634c42e8a2.zip
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 <virtualtam@flibidi.net>
Diffstat (limited to 'docker/development/Dockerfile')
-rw-r--r--docker/development/Dockerfile28
1 files changed, 28 insertions, 0 deletions
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 @@
1FROM debian:jessie
2MAINTAINER Shaarli Community
3
4RUN apt-get update \
5 && apt-get install -y \
6 nginx-light php5-fpm php5-gd supervisor \
7 git nano
8
9ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
10RUN chmod 755 /usr/local/bin/composer
11
12COPY nginx.conf /etc/nginx/nginx.conf
13COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
14RUN echo "<?php phpinfo(); ?>" > /var/www/index.php
15
16WORKDIR /var/www
17RUN rm -rf html \
18 && git clone https://github.com/shaarli/Shaarli.git shaarli \
19 && chown -R www-data:www-data .
20
21WORKDIR /var/www/shaarli
22RUN composer install
23
24VOLUME /var/www/shaarli/data
25
26EXPOSE 80
27
28CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]