glenn-jocher commited on
Commit
9ebec78
·
unverified ·
1 Parent(s): b0ba101

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

Browse files

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.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
```

Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -19,7 +19,8 @@ RUN mkdir -p /usr/src/app
19
  WORKDIR /usr/src/app
20
 
21
  # Copy contents
22
- COPY . /usr/src/app
 
23
 
24
  # Downloads to user config dir
25
  ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/
 
19
  WORKDIR /usr/src/app
20
 
21
  # Copy contents
22
+ RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
23
+ # COPY . /usr/src/app
24
 
25
  # Downloads to user config dir
26
  ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/