Dockerfile 1.6 KB

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