Skip to content

Conversation

sagar03d
Copy link

added necessary PHP extensions and their dependencies

added necessary PHP extensions and their dependencies
# RUN docker-php-ext-install pdo pdo_mysql

# Install Redis extension manually
RUN mkdir -p /usr/src/php/ext/redis \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code would no longer work, because the extension would already be installed with:

RUN pecl install redis...

pcntl

# Install Redis extension
RUN pecl install redis && docker-php-ext-enable redis
Copy link

@Gildus Gildus Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be:

RUN pecl install igbinary && \
    docker-php-ext-enable igbinary  && \
    echo "y" | pecl install redis && \
    docker-php-ext-enable redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants