[英]Install php imap on docker container through dockerfile
I'm trying to modify my dockerfile so that it will install php-imap for php on our docker container我正在尝试修改我的 dockerfile,以便它会在我们的 docker 容器上为 php 安装 php-imap
I have this:我有这个:
RUN set -ex && \
apt-get update && \
apt-get install -y php-imap && \
docker-php-ext-install php-imap
but I'm getting an error that it can't find php-imap?但我收到一个错误,说它找不到 php-imap?
What am I doing wrong here我在这里做错了什么
尝试:
RUN apt-get install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/* && docker-php-ext-configure imap --with-kerberos --with-imap-ssl && docker-php-ext-install imap
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.