use an unambiguous URL for pulling alpine

This commit is contained in:
Connor Olding 2022-10-19 21:41:57 -07:00
parent 1c0dffa857
commit 16ce669c8e
3 changed files with 4 additions and 4 deletions

View file

@ -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 \
;
FROM alpine:3.16 AS builder
FROM docker.io/library/alpine:3.16 AS builder
ARG COSMO_FLAVOR COSMO_COMMIT
COPY --from=downloader /cosmopolitan /cosmopolitan
WORKDIR /cosmopolitan

View file

@ -49,7 +49,7 @@ RUN --mount=type=tmpfs,target=/tmp : \
&& 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
ENV PATH="/cosmopolitan/bin:/cosmopolitan/gcc/bin/:/cosmopolitan/gcc/x86_64-linux-musl/bin/:$PATH"
# FIXME:

View file

@ -1,6 +1,6 @@
# MAIN: 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):
RUN apk add --no-cache xz
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 \
;
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
# configure and build a rescue shell and some utilities,
# i.e. one better suited for images built "FROM scratch".