Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit fd33fc4

Browse files
author
Sameer Naik
committed
dockerfile: clean up go cache to speed up kaniko snapshotting
1 parent 04a3897 commit fd33fc4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ ARG GIT_TAG
1313
ENV GIT_TAG=${GIT_TAG:-unknown}
1414

1515
COPY . .
16-
RUN make install
16+
RUN make install && \
17+
rm -rf ${GOPATH}/src && \
18+
rm -rf ${HOME}/.cache
1719

1820
FROM debian:stable-slim
1921

0 commit comments

Comments
 (0)