我正在尝试使用包含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
我该如何解决这个问题?
答案 0 :(得分:0)