代码拉取完成,页面将自动刷新
FROM mattrayner/lamp:latest-2004-php7
LABEL maintainer="8023 - i@8023.moe"
LABEL description="pikachu on php7 with expect @230613"
COPY . /app/
RUN apt-get update -y &&\
apt-get install -y php7.4-dev php-pear expect tcl-dev tcl-expect-dev &&\
ln -s /usr/include/tcl8.6/tcl.h /usr/include/tcl.h &&\
ln -s /usr/include/tcl8.6/tclDecls.h /usr/include/tclDecls.h &&\
ln -s /usr/include/tcl8.6/expect_tcl.h /usr/include/expect_tcl.h &&\
ln -s /usr/include/tcl8.6/tclPlatDecls.h /usr/include/tclPlatDecls.h &&\
pecl channel-update pecl.php.net && pecl install expect &&\
sed -i '/AllowNoPassword/s/false/true/g' /var/www/phpMyAdmin-5.1.1-all-languages/config.inc.php ;\
sed -i '/display_startup_errors/s/Off/On/g' /etc/php/7.4/apache2/php.ini ;\
sed -i '/allow_url_include/s/Off/On/g' /etc/php/7.4/apache2/php.ini ;\
sed -i '/allow_url_fopen/s/Off/On/g' /etc/php/7.4/apache2/php.ini ;\
sed -i '/display_errors/s/Off/On/g' /etc/php/7.4/apache2/php.ini ;\
sed -i '$a extension=expect.so' /etc/php/7.4/apache2/php.ini ;\
sed -i '/DBPW/s/root//g' /app/pkxss/inc/config.inc.php ;\
sed -i '/DBPW/s/root//g' /app/inc/config.inc.php ;\
phpenmod expect && \
apt-get remove -y php7.4-dev tcl-dev tcl-expect-dev &&\
apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/*
EXPOSE 80
CMD ["/run.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。