mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-11 02:52:56 +01:00
Add Git LFS to the Kaniko image
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
d661bc18ae
commit
9032c10c7e
1 changed files with 8 additions and 0 deletions
|
|
@ -1,5 +1,13 @@
|
||||||
FROM gcr.io/kaniko-project/executor:debug-v1.3.0 AS kaniko
|
FROM gcr.io/kaniko-project/executor:debug-v1.3.0 AS kaniko
|
||||||
FROM alpine/git
|
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/
|
COPY --from=kaniko /kaniko/executor /kaniko/
|
||||||
|
|
||||||
ENTRYPOINT ["/kaniko/executor"]
|
ENTRYPOINT ["/kaniko/executor"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue