Dockerfile 890 B

1234567891011121314151617181920212223242526272829303132333435
  1. FROM debian:jessie
  2. MAINTAINER Shaarli Community
  3. ENV TERM dumb
  4. RUN apt-get update \
  5. && apt-get install --no-install-recommends -y \
  6. ca-certificates \
  7. curl \
  8. nginx-light \
  9. php5-curl \
  10. php5-fpm \
  11. php5-gd \
  12. php5-intl \
  13. supervisor \
  14. && apt-get clean
  15. COPY nginx.conf /etc/nginx/nginx.conf
  16. COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
  17. ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
  18. RUN chmod 755 /usr/local/bin/composer
  19. WORKDIR /var/www
  20. RUN curl -L https://github.com/shaarli/Shaarli/archive/master.tar.gz | tar xzf - \
  21. && mv Shaarli-master shaarli \
  22. && cd shaarli \
  23. && composer --prefer-dist --no-dev install
  24. RUN rm -rf html \
  25. && chown -R www-data:www-data .
  26. VOLUME /var/www/shaarli/data
  27. EXPOSE 80
  28. CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]