Skip to content

Commit

Permalink
Refine git clone commands in Dockerfiles (#76)
Browse files Browse the repository at this point in the history
Adjusted git clone commands in Dockerfiles to use `--depth=1`. This
optimizes the cloning process by fetching a limited history, thereby
saving resources and time.
  • Loading branch information
PeterDaveHello authored Oct 16, 2023
1 parent 61032d6 commit 43a6c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/containers/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RUN apk add --no-cache \
"bats-core-bats-core-${commit}/install.sh" /usr/local && \
\
brew=2.2.13 && \
git clone --branch ${brew} https://github.com/Homebrew/brew && \
git clone --depth=1 --branch ${brew} https://github.com/Homebrew/brew && \
eval $(brew/bin/brew shellenv) && \
ln -s /brew/bin/brew /usr/local/bin/brew && \
brew --version && \
Expand Down
2 changes: 1 addition & 1 deletion tests/containers/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install --no-inst
"bats-core-bats-core-${commit}/install.sh" /usr/local && \
\
brew=2.2.13 && \
git clone --branch ${brew} https://github.com/Homebrew/brew && \
git clone --depth=1 --branch ${brew} https://github.com/Homebrew/brew && \
locale-gen en_US en_US.UTF-8 && \
eval $(brew/bin/brew shellenv) && \
ln -s /brew/bin/brew /usr/local/bin/brew && \
Expand Down

0 comments on commit 43a6c97

Please sign in to comment.