Newer
Older
phpservermon / Dockerfile
  1. FROM php:fpm-alpine
  2. MAINTAINER Pascal Gollor
  3. #MAINTAINER Benoit Podwinski # source from him
  4.  
  5. ENV PHP_TIMEZONE UTC
  6. ENV PHP_MEMORY_LIMIT 256M
  7. ENV MAX_UPLOAD 128M
  8. ENV PSM_DB_PORT 3306
  9. ENV UPDATE_INTERVAL 120
  10.  
  11. ARG PHPSERVERMON_VER=v3.5.2
  12.  
  13. RUN mkdir /logs /run/nginx
  14.  
  15. WORKDIR /var/www
  16.  
  17. RUN apk add --no-cache --update libxml2-dev curl-dev supervisor nginx curl git \
  18. && docker-php-ext-install mysqli pdo_mysql curl xml sockets \
  19. && rm -rf /var/www/* \
  20. && git clone https://github.com/phpservermon/phpservermon.git ./ \
  21. && git checkout tags/${PHPSERVERMON_VER} \
  22. && php composer.phar install \
  23. && rm -rf Makefile Vagrantfile composer* .git \
  24. && apk del --purge git libxml2-dev curl-dev
  25.  
  26. COPY supervisord.conf /etc/supervisord.conf
  27. COPY nginx.conf /etc/nginx/nginx.conf
  28. COPY update_status.sh /usr/local/bin/update_status.sh
  29. COPY php.ini /usr/local/etc/php/php.ini
  30. COPY docker-entrypoint.sh /docker-entrypoint.sh
  31.  
  32. RUN chmod +x /docker-entrypoint.sh \
  33. && chmod +x /usr/local/bin/update_status.sh
  34.  
  35. ENTRYPOINT ["/docker-entrypoint.sh"]
  36.  
  37. EXPOSE 80