0

我正在尝试在 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,但没有任何效果。有任何想法吗?

4

1 回答 1

0

您没有遵循正确的语法从边缘或测试分支添加包。

FROM alpine
RUN apk update && apk add --no-cache handbrake --repository="http://dl-cdn.alpinelinux.org/alpine/edge/testing" 
于 2019-09-17T01:46:45.497 回答