Newer
Older
phpservermon / Dockerfile
@Benoit Podwinski Benoit Podwinski on 22 Jul 2017 892 bytes Init
  1. FROM php:fpm-alpine
  2. MAINTAINER Benoit Podwinski
  3.  
  4. ENV PHP_TIMEZONE UTC
  5. ENV PHP_MEMORY_LIMIT 256M
  6. ENV MAX_UPLOAD 128M
  7. ENV PSM_DB_PORT 3306
  8. ENV UPDATE_INTERVAL 30
  9.  
  10. RUN mkdir /run/nginx
  11.  
  12. WORKDIR /var/www
  13.  
  14. RUN apk add --no-cache --update libxml2-dev curl-dev supervisor nginx curl git \
  15. && docker-php-ext-install mysqli pdo_mysql curl xml \
  16. && rm -rf /var/www/* \
  17. && git clone https://github.com/phpservermon/phpservermon.git ./ \
  18. && php composer.phar install \
  19. && rm -rf Makefile Vagrantfile composer* .git \
  20. && apk del --purge git libxml2-dev curl-dev
  21.  
  22. COPY supervisord.conf /etc/
  23. COPY nginx.conf /etc/nginx/
  24. COPY update_status.sh /usr/local/bin/
  25. COPY php.ini /usr/local/etc/php/
  26. COPY docker-entrypoint.sh /
  27.  
  28. RUN chmod +x /docker-entrypoint.sh \
  29. && chmod +x /usr/local/bin/update_status.sh
  30.  
  31. ENTRYPOINT ["/docker-entrypoint.sh"]
  32.  
  33. EXPOSE 80 443