build python docker镜像
时间:2020-09-17 13:04:25
收藏:0
阅读:26
#Dockerfile 这个dockrfile不是基础目录中的Dockerfile,需要在其他目录中创建
FROM python
RUN mkdir
/
code
ADD .
/
requirements.txt
/
code<br>WORKDIR
/
code
RUN pip3 install
-
i https:
/
/
pypi.tuna.tsinghua.edu.cn
/
simple
-
r requirements.txt
RUN rm
-
f requirements.txt
评论(0)