当我使用
postgresql-dev
时apt-get
有什么替代方案?
我需要转换这个:
RUN apk add postgresql-dev gcc python3-dev musl-dev
致:
RUN apt-get install postgresql-dev gcc python3-dev musl-dev
但是我得到一个错误:
无法找到软件包 postgresql-dev
我可以用什么来安装它?
没有关于您要使用哪个图像的任何信息,但如果我们假设它是 Debian 11,这应该可能看起来像:
RUN dpkg-reconfigure debconf -f noninteractive -p critical \
&& apt-get update \
&& apt-get -qy install build-essential postgresql-server-dev-13 libpython3-all-dev