Newer
Older
phpservermon / Dockerfile
  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 300
  9. ENV PHPSERVERMON_VER v3.2.2
  10.  
  11. RUN mkdir /logs /run/nginx
  12.  
  13. WORKDIR /var/www
  14.  
  15. RUN apk add --no-cache --update libxml2-dev curl-dev supervisor nginx curl git \
  16. && docker-php-ext-install mysqli pdo_mysql curl xml sockets \
  17. && rm -rf /var/www/* \
  18. && git clone https://github.com/phpservermon/phpservermon.git ./ \
  19. && git checkout tags/$PHPSERVERMON_VER \
  20. && php composer.phar install \
  21. && rm -rf Makefile Vagrantfile composer* .git \
  22. && apk del --purge git libxml2-dev curl-dev
  23.  
  24. COPY supervisord.conf /etc/supervisord.conf
  25. COPY nginx.conf /etc/nginx/nginx.conf
  26. COPY update_status.sh /usr/local/bin/update_status.sh
  27. COPY php.ini /usr/local/etc/php/php.ini
  28. COPY docker-entrypoint.sh /docker-entrypoint.sh
  29.  
  30. RUN chmod +x /docker-entrypoint.sh \
  31. && chmod +x /usr/local/bin/update_status.sh
  32.  
  33. ENTRYPOINT ["/docker-entrypoint.sh"]
  34.  
  35. EXPOSE 80