Skip to content

Commit

Permalink
chore: use smaller base image
Browse files Browse the repository at this point in the history
Use fedora-minimal which is smaller image.

Signed-off-by: Ben Oukhanov <[email protected]>
  • Loading branch information
codingben committed Dec 10, 2023
1 parent 9d3c2d3 commit c125207
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ COPY vendor/ ./vendor
COPY main.go .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o kubevirt-disk-uploader .

FROM quay.io/fedora/fedora:38
FROM quay.io/fedora/fedora-minimal:39

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

Expand Down

0 comments on commit c125207

Please sign in to comment.