Docker COPY with checkout fetch-depth: 0 (#12066)

Docker COPY with checkout fetch-depth: 0
This commit is contained in:
Glenn Jocher authored and GitHub committed 2023-08-31 15:45:22 +02:00
1 parent 9974d51f1b
commit 378ed74967
4 files changed
+5 -6

No files matched your search

+1 -2
View File
@@ -24,8 +24,7 @@ RUN rm -rf /usr/src/app && mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Copy contents
# COPY . /usr/src/app (issues as not a .git directory)
RUN git clone https://github.com/ultralytics/yolov5 /usr/src/app
COPY . /usr/src/app
# Install pip packages
COPY requirements.txt .