Copy and remove original file for smaller image size
@@ -21,8 +21,8 @@ FROM kubevirt/container-disk-v1alpha
LABEL maintainer="The KubeVirt Project <kubevirt-dev@googlegroups.com>"
RUN curl https://fedorapeople.org/groups/virt/virtio-win/virtio-win.repo -o /etc/yum.repos.d/virtio-win.repo \
-&& dnf install -y virtio-win && dnf clean all && mkdir -p /disk
-
-# the virtio-win package is shipped with version number, move it to standardized location
-# with standardized name, docker copy does not follow links
-RUN cp -L /usr/share/virtio-win/virtio-win.iso /disk/virtio-win.iso
+ && dnf install -y virtio-win \
+ && dnf clean all \
+ && mkdir -p /disk \
+ && cp -L /usr/share/virtio-win/virtio-win.iso /disk/virtio-win.iso \
+ && rm -R /usr/share/virtio-win
