【发布时间】:2020-06-09 06:34:00
【问题描述】:
我将 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
【问题讨论】:
标签: python-3.x docker uwsgi pcre