Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Use --depth flag to git clone in Dockerfiles, to save space #1188

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/dev-environment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN set -eux; \
# Install gox and golint
go get github.com/mitchellh/gox github.com/golang/lint/golint && \
# Install bats
git clone https://github.com/sstephenson/bats /usr/local/bats && \
git clone --depth 1 https://github.com/sstephenson/bats /usr/local/bats && \
# Install kubecfg
wget "https://github.com/ksonnet/kubecfg/releases/download/v0.5.0/kubecfg-linux-amd64" -O "/usr/local/bin/kubecfg" && chmod +x "/usr/local/bin/kubecfg"

Expand Down
2 changes: 1 addition & 1 deletion docker/event-sources/kubernetes/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN python3 ./get-pip.py
RUN pip3 install --upgrade kubernetes
RUN pip3 install --upgrade requests

RUN git clone https://github.com/dpkp/kafka-python
RUN git clone --depth 1 https://github.com/dpkp/kafka-python
WORKDIR kafka-python
RUN python3 ./setup.py install

Expand Down