MyShaarli/docker/development/Dockerfile
VirtualTam 453f4653c3 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>
2016-01-02 19:01:33 +01:00

28 lines
723 B
Docker

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 "<?php phpinfo(); ?>" > /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"]