Dockerfile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. FROM php:8.2-fpm
  2. # Installation des dépendances système
  3. RUN apt-get update && apt-get install -yqq --no-install-recommends \
  4. apt-utils gnupg git build-essential openssh-client zip \
  5. unzip zlib1g-dev libicu-dev g++ libzip-dev libpng-dev libtidy-dev libssl-dev \
  6. libxslt-dev libxrender-dev libxrender1 libxt6 libxtst6 openssh-server \
  7. xorg iputils-ping wget gdebi ca-certificates wget \
  8. fontconfig acl procps libmagickwand-dev imagemagick \
  9. && apt-get clean \
  10. && rm -rf /var/lib/apt/lists/*
  11. # Installation des extensions PHP
  12. RUN docker-php-ext-install intl zip \
  13. && pecl install xdebug imagick \
  14. && docker-php-ext-enable xdebug imagick \
  15. docker-php-ext-configure intl \
  16. docker-php-ext-install intl opcache pdo_mysql exif bcmath calendar gd tidy \
  17. docker-php-ext-enable libxslt-dev \
  18. docker-php-ext-enable intl \
  19. docker-php-ext-enable exif \
  20. docker-php-ext-enable tidy \
  21. docker-php-ext-install zip \
  22. docker-php-ext-install xsl \
  23. pecl install apcu-5.1.21
  24. # Configuration SSH
  25. RUN mkdir -p /root/.ssh && \
  26. chmod 700 /root/.ssh && \
  27. echo "StrictHostKeyChecking no" >> /root/.ssh/config
  28. # Installation de Composer
  29. COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
  30. # Configuration PHP
  31. RUN echo "memory_limit=2096M" > /usr/local/etc/php/conf.d/memory-limit.ini
  32. # Configuration Git
  33. RUN git config --global user.email "exploitation@opentalent.fr" && \
  34. git config --global user.name "git"
  35. WORKDIR /app
  36. COPY docker/entrypoint.sh /entrypoint.sh
  37. RUN chmod +x /entrypoint.sh
  38. ENTRYPOINT ["/entrypoint.sh"]