try to put FQDN for images

This commit is contained in:
2022-09-19 13:34:17 +02:00
parent a3930ccba7
commit 1ff7c90db8

View File

@@ -24,7 +24,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 bci/golang:1.18 AS base FROM registry.suse.com/bci/golang:1.18 AS base
WORKDIR /src WORKDIR /src
FROM base AS build FROM base AS build
@@ -35,7 +35,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 bci/bci-micro FROM registry.suse.com/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"]