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.
```
This commit is contained in:
Glenn Jocher authored and GitHub committed 2022-03-20 13:51:22 +01:00
1 parent b0ba101ac0
commit 9ebec7885f
1 file changed
+2 -1
+2 -1
View File
@@ -19,7 +19,8 @@ RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# 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
ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/