Add Git LFS to the Kaniko image

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2021-05-10 18:05:42 +02:00
parent d661bc18ae
commit 9032c10c7e
No known key found for this signature in database
GPG key ID: 4C514D15D07186F1

View file

@ -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"]