Unverified 提交 9ebec788 authored 作者: Glenn Jocher's avatar Glenn Jocher 提交者: GitHub

Update Dockerfile to `git clone` instead of `COPY` (#7053)

Resolves git command errors that currently happen in image, i.e.: ```bash root@382ae64aeca2:/usr/src/app# git pull Warning: Permanently added the ECDSA host key for IP address '140.82.113.3' to the list of known hosts. git@github.com: Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. ```
上级 b0ba101a
...@@ -19,7 +19,8 @@ RUN mkdir -p /usr/src/app ...@@ -19,7 +19,8 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Copy contents # Copy contents
COPY . /usr/src/app RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
# COPY . /usr/src/app
# Downloads to user config dir # Downloads to user config dir
ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/ ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论