Tag: 船长

把python-pip放在CentOS的docker镜像上?

我想要一个有pip的Docker镜像,然后在Dockerfile中使用pip来安装Python需求。 现在,我的Dockerfile看起来像这样: FROM centos # Set the working directory to /app WORKDIR /app # Copy the current directory contents into the container at /app ADD . /app # Set up pip RUN rm -f /var/lib/rpm/__* RUN rpm –rebuilddb -v -v RUN yum -y install epel-release && yum clean all RUN yum -y install python-pip && […]