Docker compose apt获取更新或Dockerfile中的pelc不再工作

Docker compose apt获取更新或Dockerfile中的pelc不再工作,docker-compose,dockerfile,xdebug,Docker Compose,Dockerfile,Xdebug,我无法使用update或pecl构建dockerfile 我的dockerfile: FROM debian:jessie RUN sed -i 's;http://archive.debian.org/debian;http://deb.debian.org/debian;' /etc/apt/sources.list etc ... 如果我使用例如RUN pelc install xdebug,我将得到如下错误: /bin/sh: 1: pecl: not found for apt-ge

我无法使用update或pecl构建dockerfile

我的dockerfile:

FROM debian:jessie
RUN sed -i 's;http://archive.debian.org/debian;http://deb.debian.org/debian;' /etc/apt/sources.list
etc ...
如果我使用例如
RUN pelc install xdebug
,我将得到如下错误:

/bin/sh: 1: pecl: not found
for apt-get
E: Unable to locate package