try non fully qualified repository

This commit is contained in:
Frederic Crozat 2022-09-12 15:19:10 +02:00
parent dc72e08c19
commit c28724eaf2

View File

@ -8,7 +8,7 @@ ARG BCI_GO=registry.suse.com/bci/golang
ARG GO_VERSION=1.18
#FROM $BCI_GO:$GO_VERSION AS base
FROM registry.suse.com/bci/golang:1.18 AS base
FROM bci/golang:1.18 AS base
WORKDIR /src
FROM base AS build
@ -19,7 +19,7 @@ RUN --mount=type=bind,target=/src \
--mount=type=cache,target=/go/pkg/mod \
go build -o /go/bin/registry ./cmd/registry
FROM registry.suse.com/bci/bci-micro
FROM bci/bci-micro
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
COPY --from=build /go/bin/registry /bin/registry
VOLUME ["/var/lib/registry"]