Docker Alpine图像非发现php7.1-xsl

时间:2017-04-14 15:04:35

标签: php docker alpine

我正在尝试使用包含php7-xsl的Alpine Linux创建容器。

我的Dockerfile如下:

FROM composer

RUN echo "@edge http://liskamm.alpinelinux.uk/edge/main" >> /etc/apk/repositories; \
    echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories

# Install xls extension
RUN apk --no-cache --update add libxslt-dev php7.1-xsl

当我尝试构建容器时,出现以下错误:

ERROR: unsatisfiable constraints:
  php7.1-xsl (virtual):
    provided by: php7-xsl
    required by: world[php7.1-xsl]
The command '/bin/sh -c apk --no-cache --update add libxslt-dev php7.1-xsl@testing' returned a non-zero code: 1

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

从Alpine 社区存储库

中试用php7-xsl

https://pkgs.alpinelinux.org/packages?name= PHP7-XSL &安培;分支=边缘