Dockerfile-70 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. #--------------------------------------------------------------------------
  3. # Image Setup
  4. #--------------------------------------------------------------------------
  5. #
  6. FROM php:7.0-alpine
  7. MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
  8. RUN apk --update add wget \
  9. curl \
  10. git \
  11. build-base \
  12. libmemcached-dev \
  13. libmcrypt-dev \
  14. libxml2-dev \
  15. zlib-dev \
  16. autoconf \
  17. cyrus-sasl-dev \
  18. libgsasl-dev \
  19. supervisor
  20. RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql mcrypt tokenizer xml
  21. RUN pecl channel-update pecl.php.net && pecl install memcached && docker-php-ext-enable memcached
  22. RUN rm /var/cache/apk/* \
  23. && mkdir -p /var/www
  24. #
  25. #--------------------------------------------------------------------------
  26. # Optional Supervisord Configuration
  27. #--------------------------------------------------------------------------
  28. #
  29. # Modify the ./supervisor.conf file to match your App's requirements.
  30. # Make sure you rebuild your container with every change.
  31. #
  32. COPY supervisord.conf /etc/supervisord.conf
  33. ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
  34. #
  35. #--------------------------------------------------------------------------
  36. # Optional Software's Installation
  37. #--------------------------------------------------------------------------
  38. #
  39. # If you need to modify this image, feel free to do it right here.
  40. #
  41. # -- Your awesome modifications go here -- #
  42. #
  43. #--------------------------------------------------------------------------
  44. # Final Touch
  45. #--------------------------------------------------------------------------
  46. #
  47. WORKDIR /etc/supervisor/conf.d/