From e275b73720d9a6442a4ee2a0bc6fa8842e0b8f42 Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Thu, 8 Jun 2023 14:22:03 +0200 Subject: [PATCH] cleanup with latest obs-build --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f54140a6..23e99916 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,13 +28,14 @@ WORKDIR /src FROM base AS build ENV GO111MODULE=auto +# no need for full static build on BCI ENV CGO_ENABLED=1 -RUN --mount=type=bind,target=/src \ +RUN --mount=type=bind,target=/src,rw \ --mount=type=cache,target=/root/.cache/go-build \ - --mount=type=cache,target=/go/pkg/mod \ + --mount=target=/go/pkg/mod,type=cache \ go build -o /go/bin/registry ./cmd/registry -FROM registry.suse.com/bci/bci-micro +FROM $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"]