Removed git dependency on make
This commit is contained in:
26
clitools/docker/download-packages.Dockerfile
Normal file
26
clitools/docker/download-packages.Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM alpine:3.23.0 AS base
|
||||
|
||||
# We seperate the packages so this line can be cached upstream
|
||||
RUN apk add --no-cache curl ca-certificates
|
||||
RUN apk add --no-cache git
|
||||
|
||||
# ---- uboot ----
|
||||
FROM base AS uboot
|
||||
ARG UBOOT_VERSION
|
||||
|
||||
WORKDIR /work
|
||||
|
||||
RUN apk add --no-cache git tar gzip
|
||||
|
||||
RUN git clone \
|
||||
--depth 1 \
|
||||
--branch "${UBOOT_VERSION}" \
|
||||
--filter=blob:none \
|
||||
https://github.com/u-boot/u-boot.git src
|
||||
|
||||
RUN mkdir -p /out && \
|
||||
tar -C /work/src -zcf "/out/uboot-${UBOOT_VERSION}.tar.gz" .
|
||||
|
||||
# ---- final exported artifact set ----
|
||||
FROM scratch
|
||||
COPY --from=uboot /out/ /
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM alpine:3.22 AS build
|
||||
FROM alpine:3.23 AS build
|
||||
|
||||
RUN apk add --no-cache \
|
||||
build-base \
|
||||
|
||||
Reference in New Issue
Block a user