Skip to content

Commit

Permalink
Merge pull request #223 from openshift-cherrypick-robot/cherry-pick-2…
Browse files Browse the repository at this point in the history
…21-to-release-4.3

[release-4.3] Bug 1804494: Dockerfile: Clear yum cache after install
  • Loading branch information
openshift-merge-robot committed Mar 11, 2020
2 parents 6cbd095 + 9f1d4b7 commit 7511ca6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -4,7 +4,7 @@ COPY . .
RUN hack/build-go.sh

FROM registry.svc.ci.openshift.org/openshift/origin-v4.0:base
RUN yum install -y rsync
RUN yum install -y rsync && yum clean all && rm -rf /var/cache/yum
COPY --from=builder /go/src/github.com/openshift/image-registry/_output/local/bin/dockerregistry /usr/bin/
COPY images/dockerregistry/config.yml /
RUN chmod a+w -R /etc/pki/ca-trust/extracted
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.rhel7
Expand Up @@ -4,7 +4,7 @@ COPY . .
RUN hack/build-go.sh

FROM registry.svc.ci.openshift.org/ocp/4.0:base
RUN yum install -y rsync
RUN yum install -y rsync && yum clean all && rm -rf /var/cache/yum
COPY --from=builder /go/src/github.com/openshift/image-registry/_output/local/bin/dockerregistry /usr/bin/
COPY images/dockerregistry/config.yml /
RUN chmod a+w -R /etc/pki/ca-trust/extracted
Expand Down

0 comments on commit 7511ca6

Please sign in to comment.