MQTT DockerFile

Link:

https://blog.csdn.net/russle/article/details/80469942

https://blog.csdn.net/qq_23937195/article/details/80110527

https://www.hivemq.com/blog/mqtt-client-library-encyclopedia-mosquitto-php/

https://blog.csdn.net/li3007liuu/article/details/53106067

https://www.cnblogs.com/iceman-/p/8317985.html

DockerFile:

FROM php:5.6.38-fpm

COPY . /alidata/workerspace

WORKDIR /alidata/workerspace

RUN set -x \
    && apt-get install -y \
       libc-ares-dev \
       uuid-dev \
       openssl \
       libssl-dev \
    && curl -s https://mosquitto.org/files/source/mosquitto-1.4.11.tar.gz > mosquitto-1.4.11.tgz \
    && tar -zxvf mosquitto-1.4.11.tgz \
    && cd mosquitto-1.4.11 && make && make install && cd - \
    && pecl install Mosquitto-alpha \
    && echo "extension=mosquitto.so" > /usr/local/etc/php/conf.d/docker-php-ext-mosquitto.ini \
    &&  rm -rf /alidata/workerspace

WORKDIR /alidata/www/


EXPOSE 80 443

 

posted @ 2019-08-23 11:30  凌雨尘  阅读(525)  评论(0编辑  收藏  举报