gpt4 book ai didi

python - Alpine Linux 中缺少软件包,即使它列在软件包 repo 网站上

转载 作者:IT王子 更新时间:2023-10-29 00:53:56 26 4
gpt4 key购买 nike

<分区>

我正在尝试构建一个运行 Alpine Linux 与 GDAL 和必要的 Python Hook 的 Docker 容器:

FROM python:3.6-alpine

RUN apk update

RUN apk add py-gdal gdal

RUN pip install uwsgi

RUN mkdir /code
WORKDIR /code
COPY requirements.txt .

RUN pip install -r requirements.txt

COPY . .

CMD ["uwsgi", "--ini", "uwsgi.ini"]

如您所见,我正在运行 apk update 语句来更新存储库,然后运行 ​​apk add 语句来安装包。这是我收到的输出:

/usr/bin/make -f /Users/some_guy/Workspace/tagging_tracker_backend/Makefile build up
Pulling nginx ...
Pulling db ...
Pulling web ...
db uses an image, skipping
Building nginx
Step 1/3 : FROM nginx:1.15
---> 7042885a156a
Step 2/3 : RUN rm /etc/nginx/conf.d/default.conf
---> Using cache
---> 97782a5dae3a
Step 3/3 : COPY nginx.conf /etc/nginx/conf.d/tag.conf
---> Using cache
---> 3158ab7993cd
Successfully built 3158ab7993cd
Building web
Successfully tagged tagging_tracker_backend_nginx:latest
Step 1/10 : FROM python:3.6-alpine
---> de35df1f34dd
Step 2/10 : RUN apk update
---> Using cache
---> 15477d802b32
Step 3/10 : RUN apk add py-gdal gdal
---> Running in 77bef31e5d15
ERROR: unsatisfiable constraints:
gdal (missing):
required by: world[gdal]
py-gdal (missing):
required by: world[py-gdal]
Service 'web' failed to build: The command '/bin/sh -c apk add py-gdal gdal' returned a non-zero code: 2
make: *** [build] Error 1

Process finished with exit code 2

这两个包都可以在 the Alpine Linux package website 找到.

我不熟悉 Alpine Linux,但习惯于在其他类型的 Linux 上安装软件包。这里是否还有其他命令需要传入?

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com