From aa8b1a97fbc5151b207354eacda1175cdcac0ae9 Mon Sep 17 00:00:00 2001 From: Pascal Berger Date: Wed, 14 Aug 2024 09:56:14 +0200 Subject: [PATCH] Use ADD instead of Curl (#156) --- Dockerfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1680248..ff80810 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,15 +7,9 @@ FROM base AS build # Make sure to fail due to an error at any stage in shell pipes SHELL ["/bin/bash", "-o", "pipefail", "-c"] -# renovate: datasource=repology depName=debian_12/curl versioning=loose -ENV CURL_VERSION=7.88.1-10+deb12u6 - -RUN apt-get update -y && \ - # Install necessary dependencies - apt-get install -y --no-install-recommends curl=${CURL_VERSION} && \ - # Add .NET PPA - curl -o /tmp/packages-microsoft-prod.deb https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb && \ - dpkg -i /tmp/packages-microsoft-prod.deb && \ +# Add .NET PPA +ADD https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb /tmp/packages-microsoft-prod.deb +RUN dpkg -i /tmp/packages-microsoft-prod.deb && \ rm -rf /tmp/* # Final image