-
Notifications
You must be signed in to change notification settings - Fork 439
/
Copy pathDockerfile
27 lines (20 loc) · 880 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM formapro/nginx-php-fpm:latest-all-exts
## libs
RUN set -x && \
apt-get update && \
apt-get install -y wget curl openssl ca-certificates nano netcat php-dev php-redis git python
## confis
# RUN rm -f /etc/php/7.0/cli/conf.d/*xdebug.ini
## librdkafka
RUN git clone https://github.com/edenhill/librdkafka.git /root/librdkafka
RUN cd /root/librdkafka && git checkout v0.11.0-RC2 && ./configure && make && make install
RUN pecl install rdkafka
RUN echo "extension=rdkafka.so" > /etc/php/7.1/cli/conf.d/10-rdkafka.ini
RUN echo "extension=rdkafka.so" > /etc/php/7.1/fpm/conf.d/10-rdkafka.ini
COPY ./php/cli.ini /etc/php/7.1/cli/conf.d/1-dev_cli.ini
COPY ./php/amqp.so /usr/lib/php/20160303/amqp.so
COPY ./bin/dev_entrypoiny.sh /usr/local/bin/entrypoint.sh
RUN chmod u+x /usr/local/bin/entrypoint.sh
RUN mkdir -p /mqdev
WORKDIR /mqdev
CMD /usr/local/bin/entrypoint.sh