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

+2
View File
@@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0 # copy full .git directory to access full git history in Docker images
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
+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 .
+1 -2
View File
@@ -27,8 +27,7 @@ RUN 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
ENV DEBIAN_FRONTEND teletype
+1 -2
View File
@@ -30,8 +30,7 @@ RUN 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
# Usage Examples -------------------------------------------------------------------------------------------------------