[英]How to add Zend Guard Loader support in docker php official image instance?
I want to add Zend Guard Loader support on my php instance.我想在我的 php 实例上添加Zend Guard Loader支持。
http://www.zend.com/en/products/loader/downloads#Linux http://www.zend.com/en/products/loader/downloads#Linux
Normally, I will download the package, and then add the following settings into php.ini
正常情况下,我会下载这个包,然后在
php.ini
加入如下设置
[Zend Guard Loader]
zend_extension="/usr/local/webserver/php/ext/ZendGuardLoader.so"
zend_loader.enable=1
zend_loader.disable_licensing=0
zend_loader.obfuscation_level_support=3
zend_loader.license_path="/var/developer.zl"
But, now I'm running the instance within docker.但是,现在我在 docker 中运行实例。
docker run --name php_instance php:5-fpm
And I tried to get into the shell:我试图进入外壳:
docker exec -it php_instance bash
But I cannot find the php.ini
, how can I make it work?但是我找不到
php.ini
,我该如何使它工作?
Did you add a command in your Dockerfile to copy the php.ini file from local to docker container?您是否在 Dockerfile 中添加了将 php.ini 文件从本地复制到 docker 容器的命令?
Similar to类似于
FROM php:7.1-fpm
# Install system packages
RUN apt-get update && apt-get install -y \
openssl \
libssh2-1 \
libssh2-1-dev \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pecl install xdebug
# Enable php extensions
RUN docker-php-ext-install mysqli pdo_pgsql
RUN pecl install ssh2-1.1.2
# Copy custom php.ini file
ADD ./deployment/my.php.ini /usr/local/etc/php/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.