FROM centos:7.7.1908 # docker image build -t issue1770:1.0 . # docker run -i -t issue1770:1.0 # RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum-utils RUN yum-config-manager --enable remi-php73 RUN yum install -y valgrind gdb strace vim php-devel nginx php-fpm php-pear make net-tools psmisc git screen RUN debuginfo-install -y php-fpm #RUN mkdir /root/src && cd /root/src && wget https://www.php.net/distributions/php-7.4.3.tar.bz2 && tar cvzf php-7.4.3.tar.bz2 && cd php-7.4.3 && ./configure --disable-all && RUN echo "cgi.fix_pathinfo=0" > /etc/php.ini RUN cd /tmp && git clone https://github.com/derickr/xdebug.git && cd xdebug && phpize && ./configure --with-php-config=/usr/bin/php-config && make && make install && echo "zend_extension=xdebug.so" >> /etc/php.d/90-xdebug.ini RUN echo PD9waHAKcGhwaW5mbygpOwoKb2Jfc3RhcnQoKTsKJHJlc3VsdCA9IGV2YWwoIj8+Ii4kc3RyaW5nLiI8Ii4iP3AiLiJocCByZXR1cm4gMTsiKTsKJG5ld19zdHJpbmcgPSBvYl9nZXRfY2xlYW4oKTsKdmFyX2R1bXAoJG5ld19zdHJpbmcpOwo= | base64 -d > /usr/share/nginx/html/1770.php RUN echo IyBGb3IgbW9yZSBpbmZvcm1hdGlvbiBvbiBjb25maWd1cmF0aW9uLCBzZWU6CiMgICAqIE9mZmljaWFsIEVuZ2xpc2ggRG9jdW1lbnRhdGlvbjogaHR0cDovL25naW54Lm9yZy9lbi9kb2NzLwojICAgKiBPZmZpY2lhbCBSdXNzaWFuIERvY3VtZW50YXRpb246IGh0dHA6Ly9uZ2lueC5vcmcvcnUvZG9jcy8KCnVzZXIgbmdpbng7Cndvcmtlcl9wcm9jZXNzZXMgYXV0bzsKZXJyb3JfbG9nIC92YXIvbG9nL25naW54L2Vycm9yLmxvZzsKcGlkIC9ydW4vbmdpbngucGlkOwoKIyBMb2FkIGR5bmFtaWMgbW9kdWxlcy4gU2VlIC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OwoKICAgIHNlcnZlciB7CiAgICAgICAgbGlzdGVuICAgICAgIDgwIGRlZmF1bHRfc2VydmVyOwogICAgICAgIGxpc3RlbiAgICAgICBbOjpdOjgwIGRlZmF1bHRfc2VydmVyOwogICAgICAgIHNlcnZlcl9uYW1lICBfOwogICAgICAgIHJvb3QgICAgICAgICAvdXNyL3NoYXJlL25naW54L2h0bWw7CgogICAgICAgICMgTG9hZCBjb25maWd1cmF0aW9uIGZpbGVzIGZvciB0aGUgZGVmYXVsdCBzZXJ2ZXIgYmxvY2suCiAgICAgICAgaW5jbHVkZSAvZXRjL25naW54L2RlZmF1bHQuZC8qLmNvbmY7CgogICAgICAgIGxvY2F0aW9uIC8gewogICAgICAgIH0KCiAgICAgICAgZXJyb3JfcGFnZSA0MDQgLzQwNC5odG1sOwogICAgICAgICAgICBsb2NhdGlvbiA9IC80MHguaHRtbCB7CiAgICAgICAgfQoKICAgICAgICBlcnJvcl9wYWdlIDUwMCA1MDIgNTAzIDUwNCAvNTB4Lmh0bWw7CiAgICAgICAgICAgIGxvY2F0aW9uID0gLzUweC5odG1sIHsKICAgICAgICB9CgogICAgICAgIGxvY2F0aW9uIH4gXC5waHAkIHsKICAgICAgICAgICAgcm9vdCAgICAgICAgICAgaHRtbDsKICAgICAgICAgICAgZmFzdGNnaV9wYXNzICAgMTI3LjAuMC4xOjkwMDA7CiAgICAgICAgICAgIGZhc3RjZ2lfaW5kZXggIGluZGV4LnBocDsKICAgICAgICAgICAgZmFzdGNnaV9wYXJhbSAgU0NSSVBUX0ZJTEVOQU1FICAkZG9jdW1lbnRfcm9vdCRmYXN0Y2dpX3NjcmlwdF9uYW1lOwogICAgICAgICAgICBpbmNsdWRlICAgICAgICBmYXN0Y2dpX3BhcmFtczsKICAgICAgICB9CiAgICB9Cn0K | base64 -d > /etc/nginx/nginx.conf RUN echo IyEvYmluL2Jhc2gKCm1rZGlyIC1wIC9ydW4vcGhwLWZwbQpwaHAtZnBtIC1kIGxvZ19lcnJvcnM9MSAtUgpzbGVlcCAyCi91c3Ivc2Jpbi9uZ2lueApzbGVlcCAxCi9iaW4vYmFzaAo= | base64 -d > /run-httpd.sh RUN chmod -v +x /run-httpd.sh EXPOSE 80 CMD ["/run-httpd.sh"]