我正在尝试在Docker容器中匀称安装,并且在尝试构建它时,出现错误:
OSError: Could not find library c or load any of its variants []
我的Dockerfile是
FROM python:3.6.8-alpine3.9
WORKDIR /app
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk update
RUN apk add geos-dev
RUN pip install virtualenv
RUN virtualenv utils/geojson/venv
#GEOS_CONFIG=/path/to/geos-config pip install shapely
#RUN apk add python3.6-venv
#RUN python3 -m venv utils/geojson/venv
RUN pip install -r utils/geojson/requirements.txt
CMD python
和requirements.txt:
pip>=18
setuptools>=40
shapely>=1.6.4
我想念什么?..请帮助我
我不知道我该如何使用GEOS_CONFIG和LD_LIBRARY_PATH ...(建议)