我有一个 Dockerfile 设置来安装 Alpine 和 Chromium。几周前,该软件包运行正常,我能够正确地使用它进行构建,但最近我遇到了构建失败的问题,原因是 Chromium 依赖项。这是 Docker:
FROM balenalib/odroid-xu4-alpine-node
WORKDIR /var/arbiter
RUN apk update
RUN apk upgrade
RUN apk add --no-cache --virtual build-dependencies make gcc g++ python && \
apk add --no-cache krb5-dev zeromq-dev && npm install -g node-gyp
# Install necessaries for sharp and other dependencies
RUN apk add --update \
--repository http://dl-3.alpinelinux.org/alpine/edge/main \
fftw-dev
RUN apk add --update \
--repository http://dl-3.alpinelinux.org/alpine/edge/testing \
vips-tools
RUN apk add --update \
--repository http://dl-3.alpinelinux.org/alpine/edge/testing \
vips-dev
# Lets try this again
RUN \
echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
&& apk --no-cache update \
&& apk add --no-cache --virtual .build-deps \
gifsicle pngquant optipng libjpeg-turbo-utils \
udev ttf-opensans chromium \
&& rm -rf /var/cache/apk/*
返回的错误是:
[main] OK: 13195 distinct packages available
[main] fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/armhf/APKINDEX.tar.gz
[main] fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/armhf/APKINDEX.tar.gz
[main] fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/armhf/APKINDEX.tar.gz
[main] ERROR: unsatisfiable constraints:
[main]
[main] .build-deps-0:
[main] masked in: cache
[main] satisfies: world[.build-deps]
[main] chromium (missing):
[main] required by:
[main] Removing intermediate container 6b67e7b77e1f
[main] The command '/bin/sh -c echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && apk --no-cache update && apk add --no-cache --virtual .build-deps gifsicle pngquant optipng libjpeg-turbo-utils udev ttf-opensans chromium && rm -rf /var/cache/apk/*' returned a non-zero code: 2
我可以看到该软件包最近于 1 月 2 日重建:https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium但我不确定为什么/它会如何影响这一点。
我如何确保构建成功并避免此错误(我甚至不完全理解)。