cosmo: join ARGs to save LOC
This commit is contained in:
parent
b4c10b6a69
commit
e726ca606b
1 changed files with 2 additions and 4 deletions
|
@ -5,8 +5,7 @@ ARG COSMO_COMMIT=f155205eb0fd8b4ce5878bb29556a774b5f1a7d3
|
|||
ARG COSMO_SHA256=6bb2788f3575980e8d960d2cecc31bc00f0f24c5bfb0d689e7affe7d62171d0f
|
||||
|
||||
FROM localhost/notwa-util AS downloader
|
||||
ARG COSMO_COMMIT
|
||||
ARG COSMO_SHA256
|
||||
ARG COSMO_COMMIT COSMO_SHA256
|
||||
RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \
|
||||
--mount=type=tmpfs,target=/tmp : \
|
||||
&& acquire from=github repo=jart/cosmopolitan dest=/cosmopolitan \
|
||||
|
@ -14,8 +13,7 @@ RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \
|
|||
;
|
||||
|
||||
FROM alpine:3.16 AS builder
|
||||
ARG COSMO_FLAVOR
|
||||
ARG COSMO_COMMIT
|
||||
ARG COSMO_FLAVOR COSMO_COMMIT
|
||||
COPY --from=downloader /cosmopolitan /cosmopolitan
|
||||
WORKDIR /cosmopolitan
|
||||
|
||||
|
|
Loading…
Reference in a new issue