Dockerfile 887 B

123456789101112131415161718192021222324252627282930313233343536
  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. nginx-light \
  8. php5-curl \
  9. php5-fpm \
  10. php5-gd \
  11. php5-intl \
  12. supervisor \
  13. git \
  14. nano \
  15. && apt-get clean
  16. COPY nginx.conf /etc/nginx/nginx.conf
  17. COPY supervised.conf /etc/supervisor/conf.d/supervised.conf
  18. ADD https://getcomposer.org/composer.phar /usr/local/bin/composer
  19. RUN chmod 755 /usr/local/bin/composer
  20. WORKDIR /var/www
  21. RUN git clone https://github.com/shaarli/Shaarli.git shaarli \
  22. && cd shaarli \
  23. && composer --prefer-dist install
  24. RUN rm -rf html \
  25. && echo "<?php phpinfo(); ?>" > index.php \
  26. && chown -R www-data:www-data .
  27. VOLUME /var/www/shaarli/data
  28. EXPOSE 80
  29. CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]