From 9032c10c7e60521629eb29616af68713e4f29622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Mon, 10 May 2021 18:05:42 +0200 Subject: [PATCH] Add Git LFS to the Kaniko image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- Dockerfile.kaniko | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile.kaniko b/Dockerfile.kaniko index e3147fd..5e07f29 100644 --- a/Dockerfile.kaniko +++ b/Dockerfile.kaniko @@ -1,5 +1,13 @@ FROM gcr.io/kaniko-project/executor:debug-v1.3.0 AS kaniko FROM alpine/git + +# Git LFS (https://git-lfs.github.com/) +ARG LFS_VERSION=2.9.1 +ARG LFS_DOWNLOAD_URL=https://github.com/git-lfs/git-lfs/releases/download/v${LFS_VERSION}/git-lfs-linux-amd64-v${LFS_VERSION}.tar.gz +ARG LFS_DOWNLOAD_SHA256=2a8e60cf51ec45aa0f4332aa0521d60ec75c76e485d13ebaeea915b9d70ea466 + +RUN /scripts/install-lfs && git lfs --version + COPY --from=kaniko /kaniko/executor /kaniko/ ENTRYPOINT ["/kaniko/executor"]