Skip to content

Commit 5bc3560

Browse files
authored
Update Dockerfile to git clone instead of COPY (ultralytics#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. [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. ```
1 parent cdd52a2 commit 5bc3560

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN mkdir -p /usr/src/app
1919
WORKDIR /usr/src/app
2020

2121
# Copy contents
22-
COPY . /usr/src/app
22+
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
23+
# COPY . /usr/src/app
2324

2425
# Downloads to user config dir
2526
ADD https://ultralytics.com/assets/Arial.ttf /root/.config/Ultralytics/

0 commit comments

Comments
 (0)