From 5196281cd7784f579ee6a46edff78eca82bc49d7 Mon Sep 17 00:00:00 2001 From: Alan Hodgson Date: Tue, 20 Aug 2024 15:50:56 -0700 Subject: [PATCH] Allow setting http_proxy via EXTRA_BUILD_ARGS to cache apt packages during image build. --- image/Dockerfile | 1 + image/Dockerfile.base | 1 + 2 files changed, 2 insertions(+) diff --git a/image/Dockerfile b/image/Dockerfile index 1d213730..d6c04069 100644 --- a/image/Dockerfile +++ b/image/Dockerfile @@ -7,6 +7,7 @@ MAINTAINER Phusion ADD . /pd_build ARG ARCH +ARG http_proxy RUN --mount=type=cache,target=/build_cache \ /usr/bin/nice /pd_build/install_image.sh diff --git a/image/Dockerfile.base b/image/Dockerfile.base index 298ba50b..e9dff1d5 100644 --- a/image/Dockerfile.base +++ b/image/Dockerfile.base @@ -5,6 +5,7 @@ MAINTAINER Phusion ADD . /pd_build ARG ARCH +ARG http_proxy RUN --mount=type=cache,target=/build_cache \ rm -rf "/build_cache/${ARCH}" && \ /usr/bin/nice /pd_build/install_base.sh && \