Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 xsl \
  13. && pecl install xdebug imagick \
  14. && docker-php-ext-enable xdebug imagick
  15. # Configure docker
  16. #docker-php-ext-configure intl
  17. #docker-php-ext-install intl opcache pdo_mysql exif bcmath calendar gd tidy
  18. #docker-php-ext-enable libxslt-dev
  19. #docker-php-ext-enable intl
  20. #docker-php-ext-enable exif
  21. #docker-php-ext-enable tidy
  22. #docker-php-ext-install zip
  23. #docker-php-ext-install xsl
  24. #pecl install apcu-5.1.21
  25. # Configuration SSH
  26. RUN mkdir -p /root/.ssh && \
  27. chmod 700 /root/.ssh && \
  28. echo "StrictHostKeyChecking no" >> /root/.ssh/config
  29. # Installation de Composer
  30. COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
  31. # Configuration PHP
  32. RUN echo "memory_limit=2096M" > /usr/local/etc/php/conf.d/memory-limit.ini
  33. # Configuration Git
  34. RUN git config --global user.email "exploitation@opentalent.fr" && \
  35. git config --global user.name "git"
  36. WORKDIR /app
  37. COPY docker/entrypoint.sh /entrypoint.sh
  38. RUN chmod +x /entrypoint.sh
  39. ENTRYPOINT ["/entrypoint.sh"]