[我正在将Python3.8-slim图像用于在uwsgi上运行的djangoapp,但uwsgi需要libpcre3-dev
才能构建具有pcre支持。
当我添加RUN apt-get install -y libpcre3 libpcre3-dev
时>
FROM python:3.8-slim ... # Configure apt ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ && apt-get -y install --no-install-recommends apt-utils 2>&1 ... RUN apt-get install -y libpcre3 libpcre3-dev RUN pip install uwsgi # hopefully uwsgi should built with PCRE support now?
到我的dockerfile,我得到
E: Package 'libpcre3-dev' has no installation candidate
我该如何安装?
编辑:这是完整的Dockerfile:https://github.com/timberline-secondary/hackerspace/blob/f36cafd4c7d97eb989c37bbc9dfdc9c8ddf126c5/Dockerfile
我正在对在uwsgi上运行的djangoapp使用Python3.8-slim映像,但是uwsgi需要libpcre3-dev才能构建具有pcre支持的版本。当我添加RUN apt-get install -y libpcre3 libpcre3-dev from python:3.8 -...
替换您的行
您会收到此消息,但不进行apt-get更新。尝试下面的代码。