Update php version

This commit is contained in:
2022-07-01 18:30:26 +02:00
parent 92dacfec03
commit 224080001e

View File

@@ -1,4 +1,4 @@
FROM php:7.4-fpm
FROM php:8.0-fpm
ENV WORKDIR=/var/www/html
ENV STORAGE_DIR=${WORKDIR}/storage
ENV DOCUMENT_ROOT=${WORKDIR}
@@ -30,6 +30,18 @@ RUN apt-get update && apt-get install -y nginx
# Clear cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Install Kafka
RUN git clone https://github.com/arnaud-lb/php-rdkafka.git\
&& cd php-rdkafka \
&& phpize \
&& ./configure \
&& make all -j 5 \
&& make install
# Install Rdkafka and enable it
RUN docker-php-ext-enable rdkafka \
&& cd .. \
&& rm -rf /php-rdkafka
# Install PHP extensions zip, mbstring, exif, bcmath, intl
RUN docker-php-ext-configure gd --with-freetype --with-jpeg