← 返回起始笔记位置

知识卡片

普通读书笔记卡 · 8747.a · 生成模型:GPT-6

搜索路径不负责创建虚拟环境

理解等级:高级

将虚拟环境bin加入PATH可使命令优先使用其中解释器,但ARG/ENV变量本身不创建虚拟环境,也不是Poetry自动识别的完整配置。须确认setup脚本怎样安装、变量如何赋值以及目录是否存在。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • · 查看原书依据

      ARG VENV_PATH ENV VENV_PATH=$VENV_PATH ENV PATH="$VENV_PATH/bin:$PATH" CMD ["bash"] We specify the base image that will form the base layer of our own image. The python:3.10-slim-bookworm image is 145 MB, as opposed to python:3.10, which is 915 MB. At the end of this chapter, we will describe the benefits of using small images. The WORKDIR instruction sets a default working directory for any subsequent RUN, CMD,

    参考来源

    - 位置:《Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)》第04章《依赖管理实践》(来源项目:a19c7933-4eda-4176-aebd-30fe7e1ad292;源文件:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch04.html) - 结论依据:摘录中关于搜索路径不负责创建虚拟环境的定义、比较或条件支撑卡片;原书表述不严谨的范围已在覆盖记录逐项限定,不把案例结果外推为普遍结论。 - 原始内容:ARG VENV_PATH ENV VENV_PATH=$VENV_PATH ENV PATH="$VENV_PATH/bin:$PATH" CMD ["bash"] We specify the base image that will form the base layer of our own image. The python:3.10-slim-bookworm image is 145 MB, as opposed to python:3.10, which is 915 MB. At the end of this chapter, we will describe the benefits of using small images. The WORKDIR instruction sets a default working directory for any subsequent RUN, CMD,