Skip to content

Commit

Permalink
Only clone the branch/tag required with no history (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
tombeynon authored Jan 20, 2025
1 parent 0261ad3 commit dbb6ff5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ ARG BUILD_PATH=.
ARG BUILD_REF=$VERSION
ARG BINARY_PATH=$GOPATH/bin/$PROJECT_BIN

RUN git clone $REPOSITORY source && \
RUN git clone --depth 1 --branch $BUILD_REF $REPOSITORY source && \
cd /data/source/$BUILD_PATH && \
git checkout $BUILD_REF && \
$BUILD_CMD && \
mv $BINARY_PATH /bin/$PROJECT_BIN

Expand Down

0 comments on commit dbb6ff5

Please sign in to comment.