build python docker镜像
2021-03-29 09:26
阅读:762
标签:https contain pip3 nta comment pypi 基础 txt pytho build python docker镜像 标签:https contain pip3 nta comment pypi 基础 txt pytho 原文地址:https://www.cnblogs.com/nf01/p/13613480.html
#Dockerfile 这个dockrfile不是基础目录中的Dockerfile,需要在其他目录中创建
FROM python
RUN mkdir /code
ADD ./requirements.txt /code
WORKDIR /code
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
RUN rm -f requirements.txt
文章来自:搜素材网的编程语言模块,转载请注明文章出处。
文章标题:build python docker镜像
文章链接:http://soscw.com/index.php/essay/69452.html
文章标题:build python docker镜像
文章链接:http://soscw.com/index.php/essay/69452.html
评论
亲,登录后才可以留言!