mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2025-12-07 22:19:44 +01:00
Refactoring
This commit is contained in:
14
Dockerfile
14
Dockerfile
@@ -29,21 +29,9 @@ RUN apt-get update && apt-get install -y nginx
|
|||||||
|
|
||||||
# Clear cache
|
# Clear cache
|
||||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
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
|
# Install PHP extensions zip, mbstring, exif, bcmath, intl
|
||||||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg
|
RUN docker-php-ext-configure gd
|
||||||
RUN docker-php-ext-install zip mbstring exif pcntl bcmath -j$(nproc) gd intl
|
RUN docker-php-ext-install zip mbstring exif pcntl bcmath -j$(nproc) gd intl
|
||||||
|
|
||||||
# Install Redis and enable it
|
# Install Redis and enable it
|
||||||
|
|||||||
Reference in New Issue
Block a user