对接(构建和创建)相对较新,当我尝试用数据科学包构建码头映像时,我遇到了一个问题。这个过程似乎在python选择上出错了,但我不知道为什么。我的docker文件(Dockerfile)位于我试图构建的目录根目录中。它在一定程度上完成了构建过程,然后失败了:
------
> [3/3] RUN apk add --no-cache --virtual build-dependencies python --update py-pip && apk add --virtual build-runtime build-base python-dev openblas-dev freetype-dev pkgconfig gfortran && ln -s /usr/include/locale.h /usr/include/xlocale.h && pip install --upgrade pip && pip install --no-cache-dir numpy matplotlib scipy scikit-learn pandas nltk wordcloud && apk del build-runtime && apk add --no-cache --virtual build-dependencies dumb-init musl libc6-compat linux-headers build-base bash git ca-certificates freetype libgfortran libgcc libstdc++ openblas tcl tk libssl1.0 && rm -rf /var/cache/apk/*:
#6 0.159 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/APKINDEX.tar.gz
#6 0.742 fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/aarch64/APKINDEX.tar.gz
#6 1.008 ERROR: unable to select packages:
#6 1.021 python (no such package):
#6 1.021 required by: build-dependencies-20220407.173111[python]
------
executor failed running [/bin/sh -c apk add --no-cache --virtual build-dependencies python --update py-pip && apk add --virtual build-runtime build-base python-dev openblas-dev freetype-dev pkgconfig gfortran && ln -s /usr/include/locale.h /usr/include/xlocale.h && pip install --upgrade pip && pip install --no-cache-dir $PYTHON_PACKAGES && apk del build-runtime && apk add --no-cache --virtual build-dependencies $PACKAGES && rm -rf /var/cache/apk/*]: exit code: 2
(base) tdentry@VONFVFGG5STQ05N kaggle_assignment % docker build -t tdentryr/python-datascience:3.9 -f Dockerfile .对为什么会失败有什么想法吗?
发布于 2022-04-07 17:42:38
如果发布一个有效的Dockerfile
https://stackoverflow.com/questions/71786646
复制相似问题