Kafka DockerFile

 

FROM php:5.6.38-fpm

COPY . /alidata/workerspace

WORKDIR /alidata/workerspace

RUN set -x
    && apt-get update \
    && apt-get install -y \
        libfreetype6-dev \
        libjpeg62-turbo-dev \
        libpng-dev \
        libmcrypt-dev \
        python \
        procps \
        git \
    && git clone https://github.com/edenhill/librdkafka.git \
    && cd librdkafka && git checkout 0.9.1 && ./configure && make && make install && cd - \
    && pecl install rdkafka && docker-php-ext-enable rdkafka \

    &&  rm -rf /alidata/workerspace

WORKDIR /alidata/www/


EXPOSE 80 443

 

posted @ 2019-09-10 14:34  凌雨尘  阅读(1664)  评论(0编辑  收藏  举报