Skip to content

Commit

Permalink
Allow setting http_proxy via EXTRA_BUILD_ARGS to cache apt packages
Browse files Browse the repository at this point in the history
during image build.
  • Loading branch information
ajhodgson committed Aug 24, 2024
1 parent 8370f46 commit 5196281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ MAINTAINER Phusion <[email protected]>
ADD . /pd_build

ARG ARCH
ARG http_proxy
RUN --mount=type=cache,target=/build_cache \
/usr/bin/nice /pd_build/install_image.sh

Expand Down
1 change: 1 addition & 0 deletions image/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ MAINTAINER Phusion <[email protected]>
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 && \
Expand Down

0 comments on commit 5196281

Please sign in to comment.