chore: add php8.5 with working qa
This commit is contained in:
parent
39fbe6db14
commit
bb700ccfab
1 changed files with 30 additions and 16 deletions
|
|
@ -9,16 +9,18 @@ RUN apt-get update -qq && \
|
|||
libfreetype6-dev \
|
||||
libjpeg62-turbo-dev \
|
||||
libpng-dev \
|
||||
libwebp-dev \
|
||||
libwebp-dev \
|
||||
libxpm-dev \
|
||||
# INTL
|
||||
# INTL
|
||||
zlib1g-dev libicu-dev g++ \
|
||||
# XSL
|
||||
# XSL
|
||||
libxslt-dev \
|
||||
# ZIP
|
||||
# ZIP
|
||||
libzip-dev \
|
||||
unzip \
|
||||
zip \
|
||||
#GMP
|
||||
libgmp-dev \
|
||||
# Imagick
|
||||
libmagick++-dev \
|
||||
libmagickwand-dev \
|
||||
|
|
@ -30,14 +32,14 @@ RUN apt-get update -qq && \
|
|||
locales
|
||||
|
||||
# LOCALES
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN echo "fr_FR.UTF-8 UTF-8" > /etc/locale.gen && \
|
||||
locale-gen fr_FR.UTF-8 && \
|
||||
dpkg-reconfigure locales && \
|
||||
/usr/sbin/update-locale LANG=fr_FR.UTF-8
|
||||
ENV LC_ALL fr_FR.UTF-8
|
||||
ENV LANG fr_FR.UTF-8
|
||||
ENV LANGUAGE fr_FR.UTF-8:fr
|
||||
ENV LC_ALL=fr_FR.UTF-8
|
||||
ENV LANG=fr_FR.UTF-8
|
||||
ENV LANGUAGE=fr_FR.UTF-8:fr
|
||||
# END LOCALES
|
||||
|
||||
RUN docker-php-ext-configure gd \
|
||||
|
|
@ -50,29 +52,41 @@ RUN docker-php-ext-configure gd \
|
|||
RUN docker-php-ext-configure intl
|
||||
RUN docker-php-ext-configure zip --with-zip
|
||||
RUN docker-php-ext-configure ldap
|
||||
RUN docker-php-ext-install exif gd gettext intl mysqli pdo_mysql xsl opcache zip bcmath ldap
|
||||
RUN docker-php-ext-install exif gd gettext intl mysqli pdo_mysql xsl opcache zip bcmath ldap gmp
|
||||
|
||||
RUN pecl install imagick-3.7.0 && docker-php-ext-enable imagick
|
||||
RUN pecl install memcached-3.2.0 && docker-php-ext-enable memcached
|
||||
# PECL PROXY HACK
|
||||
ARG HTTP_PROXY
|
||||
ARG HTTPS_PROXY
|
||||
ARG http_proxy
|
||||
ARG https_proxy
|
||||
RUN pear config-set http_proxy ${http_proxy} &&\
|
||||
pear config-set php_ini $PHP_INI_DIR/php.ini
|
||||
|
||||
RUN pecl channel-update pecl.php.net
|
||||
|
||||
RUN pecl install imagick-3.8.1 && docker-php-ext-enable imagick
|
||||
RUN pecl install memcached-3.4.0 && docker-php-ext-enable memcached
|
||||
|
||||
# DEV
|
||||
RUN apt-get install -qy git
|
||||
|
||||
## DEPRECATED -> composer audit
|
||||
# local-php-security-checker
|
||||
RUN mkdir /tools && \
|
||||
RUN mkdir /tools && \
|
||||
curl -L https://github.com/fabpot/local-php-security-checker/releases/download/v2.0.4/local-php-security-checker_2.0.4_linux_amd64 -o /tools/local-php-security-checker && \
|
||||
chmod +x /tools/local-php-security-checker
|
||||
|
||||
ENV PATH="$PATH:/tools"
|
||||
|
||||
RUN pecl install pcov && docker-php-ext-enable pcov
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.5.5
|
||||
## NODE
|
||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer --version=2.6.0
|
||||
## NODE -> penser a bun
|
||||
RUN apt-get update -qq && \
|
||||
apt-get install -qy \
|
||||
ca-certificates curl gnupg \
|
||||
&& mkdir -p /etc/apt/keyrings \
|
||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
||||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_24.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
## END NODE
|
||||
RUN apt-get update -qq && apt-get install -y nodejs && npm install -g audit-ci@^6
|
||||
#END DEV
|
||||
|
|
@ -80,4 +94,4 @@ RUN apt-get update -qq && apt-get install -y nodejs && npm install -g audit-ci@^
|
|||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
COPY php-production.ini /usr/local/etc/php/conf.d/app.ini
|
||||
|
||||
WORKDIR /project
|
||||
WORKDIR /project
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue