我正在尝试在Docker容器中安装HandBrakeCLI。
在我的Dockerfile中,我有:
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk add --no-cache handbrake
我收到以下错误:
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
so:libx265.so.169 (missing):
required by: handbrake-1.2.2-r1[so:libx265.so.169]
ERROR: Service 'app' failed to build: The command '/bin/sh -c apk add --no-cache handbrake' returned a non-zero code: 2
我已经搜索了一段时间以获取libx265,但没有任何效果。有什么想法吗?
答案 0 :(得分:0)
您没有按照正确的语法从边缘或测试分支中添加软件包。
FROM alpine
RUN apk update && apk add --no-cache handbrake --repository="http://dl-cdn.alpinelinux.org/alpine/edge/testing"