use an unambiguous URL for pulling alpine
This commit is contained in:
parent
3dce18a225
commit
29567f663a
3 changed files with 4 additions and 4 deletions
|
@ -12,7 +12,7 @@ RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \
|
||||||
&& acquire from=github repo=jart/cosmopolitan dest=/cosmopolitan env=COSMO \
|
&& acquire from=github repo=jart/cosmopolitan dest=/cosmopolitan env=COSMO \
|
||||||
;
|
;
|
||||||
|
|
||||||
FROM alpine:3.16 AS builder
|
FROM docker.io/library/alpine:3.16 AS builder
|
||||||
ARG COSMO_FLAVOR COSMO_COMMIT
|
ARG COSMO_FLAVOR COSMO_COMMIT
|
||||||
COPY --from=downloader /cosmopolitan /cosmopolitan
|
COPY --from=downloader /cosmopolitan /cosmopolitan
|
||||||
WORKDIR /cosmopolitan
|
WORKDIR /cosmopolitan
|
||||||
|
|
|
@ -49,7 +49,7 @@ RUN --mount=type=tmpfs,target=/tmp : \
|
||||||
&& cp /cosmopolitan/env /distrib/env \
|
&& cp /cosmopolitan/env /distrib/env \
|
||||||
;
|
;
|
||||||
|
|
||||||
FROM alpine:3.16 AS runner
|
FROM docker.io/library/alpine:3.16 AS runner
|
||||||
COPY --from=distrib /distrib /cosmopolitan
|
COPY --from=distrib /distrib /cosmopolitan
|
||||||
ENV PATH="/cosmopolitan/bin:/cosmopolitan/gcc/bin/:/cosmopolitan/gcc/x86_64-linux-musl/bin/:$PATH"
|
ENV PATH="/cosmopolitan/bin:/cosmopolitan/gcc/bin/:/cosmopolitan/gcc/x86_64-linux-musl/bin/:$PATH"
|
||||||
# FIXME:
|
# FIXME:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# MAIN: https://eaguru.guru/git/notwa/stargazing
|
# MAIN: https://eaguru.guru/git/notwa/stargazing
|
||||||
# REPO: https://eaguru.guru/git/notwa/stargazing
|
# REPO: https://eaguru.guru/git/notwa/stargazing
|
||||||
FROM alpine:3.16 as partial
|
FROM docker.io/library/alpine:3.16 as partial
|
||||||
# need this for acquire (.tar.xz files):
|
# need this for acquire (.tar.xz files):
|
||||||
RUN apk add --no-cache xz
|
RUN apk add --no-cache xz
|
||||||
COPY --chmod=0755 acquire cosmocc dedupe ofc quickconf shed \
|
COPY --chmod=0755 acquire cosmocc dedupe ofc quickconf shed \
|
||||||
|
@ -23,7 +23,7 @@ RUN --mount=type=cache,id=common,target=/media/common,sharing=locked \
|
||||||
&& acquire \
|
&& acquire \
|
||||||
;
|
;
|
||||||
|
|
||||||
FROM alpine:3.16 as builder
|
FROM docker.io/library/alpine:3.16 as builder
|
||||||
RUN apk add --no-cache gcc linux-headers make musl-dev
|
RUN apk add --no-cache gcc linux-headers make musl-dev
|
||||||
# configure and build a rescue shell and some utilities,
|
# configure and build a rescue shell and some utilities,
|
||||||
# i.e. one better suited for images built "FROM scratch".
|
# i.e. one better suited for images built "FROM scratch".
|
||||||
|
|
Loading…
Add table
Reference in a new issue