Dockerfile 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. FROM php:8.2-fpm-alpine3.20
  2. LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
  3. # renovate: datasource=github-tags depName=krakjoe/apcu versioning=semver-coerced extractVersion=^v(?<version>.*)$
  4. ARG APCU_PECL_VERSION=5.1.24
  5. # renovate: datasource=github-tags depName=Imagick/imagick versioning=semver-coerced extractVersion=(?<version>.*)$
  6. ARG IMAGICK_PECL_VERSION=3.7.0
  7. # renovate: datasource=github-tags depName=php/pecl-mail-mailparse versioning=semver-coerced extractVersion=^v(?<version>.*)$
  8. ARG MAILPARSE_PECL_VERSION=3.1.8
  9. # renovate: datasource=github-tags depName=php-memcached-dev/php-memcached versioning=semver-coerced extractVersion=^v(?<version>.*)$
  10. ARG MEMCACHED_PECL_VERSION=3.2.0
  11. # renovate: datasource=github-tags depName=phpredis/phpredis versioning=semver-coerced extractVersion=(?<version>.*)$
  12. ARG REDIS_PECL_VERSION=6.1.0
  13. # renovate: datasource=github-tags depName=composer/composer versioning=semver-coerced extractVersion=(?<version>.*)$
  14. ARG COMPOSER_VERSION=2.6.6
  15. RUN apk add -U --no-cache autoconf \
  16. aspell-dev \
  17. aspell-libs \
  18. bash \
  19. c-client \
  20. cyrus-sasl-dev \
  21. freetype \
  22. freetype-dev \
  23. g++ \
  24. git \
  25. gettext \
  26. gettext-dev \
  27. gmp-dev \
  28. gnupg \
  29. icu-dev \
  30. icu-libs \
  31. imagemagick \
  32. imagemagick-dev \
  33. imap-dev \
  34. jq \
  35. libavif \
  36. libavif-dev \
  37. libjpeg-turbo \
  38. libjpeg-turbo-dev \
  39. libmemcached \
  40. libmemcached-dev \
  41. libpng \
  42. libpng-dev \
  43. libressl \
  44. libressl-dev \
  45. librsvg \
  46. libtool \
  47. libwebp-dev \
  48. libxml2-dev \
  49. libxpm \
  50. libxpm-dev \
  51. libzip \
  52. libzip-dev \
  53. linux-headers \
  54. make \
  55. mysql-client \
  56. openldap-dev \
  57. pcre-dev \
  58. re2c \
  59. redis \
  60. samba-client \
  61. zlib-dev \
  62. tzdata \
  63. && pecl install APCu-${APCU_PECL_VERSION} \
  64. && pecl install imagick-${IMAGICK_PECL_VERSION} \
  65. && pecl install mailparse-${MAILPARSE_PECL_VERSION} \
  66. && pecl install memcached-${MEMCACHED_PECL_VERSION} \
  67. && pecl install redis-${REDIS_PECL_VERSION} \
  68. && docker-php-ext-enable apcu imagick memcached mailparse redis \
  69. && pecl clear-cache \
  70. && docker-php-ext-configure intl \
  71. && docker-php-ext-configure exif \
  72. && docker-php-ext-configure gd --with-freetype=/usr/include/ \
  73. --with-jpeg=/usr/include/ \
  74. --with-webp \
  75. --with-xpm \
  76. --with-avif \
  77. && docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets sysvsem zip bcmath gmp \
  78. && docker-php-ext-configure imap --with-imap --with-imap-ssl \
  79. && docker-php-ext-install -j 4 imap \
  80. && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \
  81. && mv composer.phar /usr/local/bin/composer \
  82. && chmod +x /usr/local/bin/composer \
  83. && apk del --purge autoconf \
  84. aspell-dev \
  85. cyrus-sasl-dev \
  86. freetype-dev \
  87. g++ \
  88. gettext-dev \
  89. icu-dev \
  90. imagemagick-dev \
  91. imap-dev \
  92. libavif-dev \
  93. libjpeg-turbo-dev \
  94. libmemcached-dev \
  95. libpng-dev \
  96. libressl-dev \
  97. libwebp-dev \
  98. libxml2-dev \
  99. libxpm-dev \
  100. libzip-dev \
  101. linux-headers \
  102. make \
  103. openldap-dev \
  104. pcre-dev \
  105. zlib-dev
  106. COPY ./docker-entrypoint.sh /
  107. ENTRYPOINT ["/docker-entrypoint.sh"]
  108. CMD ["php-fpm"]