MyShaarli/docker/production/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

20 lines
559 B
Docker

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/master.tar.gz | tar xvzf - \
&& mv Shaarli-master 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"]