Skip to content

Commit

Permalink
Merge pull request #65 from ultralytics/master
Browse files Browse the repository at this point in the history
Docker COPY with checkout `fetch-depth: 0` (ultralytics#12066)
  • Loading branch information
NagatoYuki0943 authored Sep 1, 2023
2 parents 5454a62 + 378ed74 commit 3c3a9b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # copy full .git directory to access full git history in Docker images

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
3 changes: 1 addition & 2 deletions utils/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand Down
3 changes: 1 addition & 2 deletions utils/docker/Dockerfile-arm64
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 1 addition & 2 deletions utils/docker/Dockerfile-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 3c3a9b0

Please sign in to comment.