Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit c125207

Browse files
committed
chore: use smaller base image
Use fedora-minimal which is smaller image. Signed-off-by: Ben Oukhanov <boukhanov@redhat.com>
1 parent 9d3c2d3 commit c125207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ COPY vendor/ ./vendor
66
COPY main.go .
77
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o kubevirt-disk-uploader .
88

9-
FROM quay.io/fedora/fedora:38
9+
FROM quay.io/fedora/fedora-minimal:39
1010

1111
RUN cd /usr/bin && \
1212
curl -L https://github.com/kubevirt/kubevirt/releases/download/v1.0.0/virtctl-v1.0.0-linux-amd64 --output virtctl && \
1313
chmod +x virtctl && \
1414
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
1515
chmod +x kubectl && \
16-
dnf install -y qemu-img && \
17-
dnf clean all -y
16+
microdnf install -y gzip qemu-img && \
17+
microdnf clean all -y
1818
COPY --from=builder /app/kubevirt-disk-uploader /usr/local/bin/kubevirt-disk-uploader
1919
COPY run-uploader.sh /usr/local/bin/run-uploader.sh
2020

0 commit comments

Comments
 (0)