From 621de81ab913f2047da84fb4d5d6685ff01a22f3 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Wed, 5 Jun 2024 16:32:50 +1000 Subject: [PATCH] build: Rebase http transfer agent --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 466d636..3c926fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM hashicorp/packer:light as packer FROM hashicorp/terraform:light as terraform -FROM debian:11-slim AS download +FROM alpine:latest AS download ENV OVFTOOL_VERSION=4.4.1-16812187 ENV OVFTOOL_INSTALLER=VMware-ovftool-${OVFTOOL_VERSION}-lin.x86_64.bundle @@ -10,12 +10,11 @@ ARG REPO_USERNAME ARG REPO_PASSWORD ADD https://${REPO_USERNAME}:${REPO_PASSWORD}@sn.itch.fyi/Repository/bin/VMware/ovftool/4.4.x/${OVFTOOL_INSTALLER} /tmp/ovftool-installer -RUN apt-get update && apt-get install -y --no-install-recommends \ - curl \ +RUN apk --update add --no-cache \ jq && \ - curl -kL https://api.github.com/repos/mikefarah/yq/releases/latest | \ + wget -qO- https://api.github.com/repos/mikefarah/yq/releases/latest | \ jq -r '.assets[] | select(.name | endswith("yq_linux_amd64")) | .browser_download_url' | \ - xargs -I {} curl -L -o /tmp/yq {} && \ + xargs -I {} wget -qO /tmp/yq {} && \ chmod +x /tmp/yq FROM debian:11-slim