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

 

你可能感兴趣的:(Kafka DockerFile)