Created
June 27, 2020 19:17
-
-
Save ssi-anik/253bfadb06589a397b43714321eb68e7 to your computer and use it in GitHub Desktop.
PHP dockerfile for rdkafka/kafka/libkafka
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-fpm | |
RUN apt-get update | |
RUN apt-get install -y librdkafka-dev | |
RUN pecl install channel://pecl.php.net/rdkafka-beta | |
RUN rm -rf /tmp/pear | |
RUN echo "extension=rdkafka.so" > /usr/local/etc/php/conf.d/rdkafka.ini | |
WORKDIR /app | |
CMD [ "php-fpm" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment