try non fully qualified repository
This commit is contained in:
parent
dc72e08c19
commit
c28724eaf2
@ -8,7 +8,7 @@ ARG BCI_GO=registry.suse.com/bci/golang
|
|||||||
ARG GO_VERSION=1.18
|
ARG GO_VERSION=1.18
|
||||||
|
|
||||||
#FROM $BCI_GO:$GO_VERSION AS base
|
#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
|
WORKDIR /src
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
@ -19,7 +19,7 @@ RUN --mount=type=bind,target=/src \
|
|||||||
--mount=type=cache,target=/go/pkg/mod \
|
--mount=type=cache,target=/go/pkg/mod \
|
||||||
go build -o /go/bin/registry ./cmd/registry
|
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 cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
||||||
COPY --from=build /go/bin/registry /bin/registry
|
COPY --from=build /go/bin/registry /bin/registry
|
||||||
VOLUME ["/var/lib/registry"]
|
VOLUME ["/var/lib/registry"]
|
||||||
|
Loading…
Reference in New Issue
Block a user