Skip to content

Commit

Permalink
Merge pull request #531 from benluddy/downstream-image-size
Browse files Browse the repository at this point in the history
Bug 1883560: Avoid duplicate registry binaries across downstream image layers.
  • Loading branch information
openshift-merge-robot committed Dec 4, 2020
2 parents 8ec2ada + f5e2e7f commit 2e9bb75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -13,10 +13,10 @@ RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github

FROM registry.svc.ci.openshift.org/ocp/4.7:base

COPY --from=builder /src/bin/* /tmp/bin/
COPY --from=builder /src/bin/* /bin/registry/
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe

RUN cp -avr /tmp/bin/. /bin/ && rm -rf /tmp/bin
RUN ln -s /bin/registry/* /bin

RUN mkdir /registry
RUN chgrp -R 0 /registry && \
Expand Down

0 comments on commit 2e9bb75

Please sign in to comment.