Dockerfile: remove pre-built git stage

QEMU usermode emulation is robust enough for running `apk add --no-cache
git xz`, so can we can safely remove the pre-built git stage.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
v0.8
Akihiro Suda 2020-11-06 16:15:11 +09:00
parent aba69fa102
commit 64123a45c3
No known key found for this signature in database
GPG Key ID: 49524C6F9F638F1A
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ RUN --mount=from=binaries \
FROM scratch AS release
COPY --from=releaser /out/ /
FROM tonistiigi/git@sha256:393483e1cef35f09e1a8fe0a0bd93a78b1b6ecec5b5afa5fa5d600fa3ab1fdd8 AS buildkit-export
FROM git AS buildkit-export
RUN apk add --no-cache fuse3 && ln -s fusermount3 /usr/bin/fusermount
COPY examples/buildctl-daemonless/buildctl-daemonless.sh /usr/bin/
VOLUME /var/lib/buildkit