From e2ba0813b950a919ea7b4f1fee5db6a2b00d86fc Mon Sep 17 00:00:00 2001 From: Ryan Govostes Date: Tue, 27 Feb 2024 18:01:25 -0800 Subject: [PATCH] Persist container ARGs across multiple stages (#284) --- examples/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/Dockerfile b/examples/Dockerfile index 369eba7c..7b492813 100644 --- a/examples/Dockerfile +++ b/examples/Dockerfile @@ -1,9 +1,12 @@ -FROM ubuntu:20.04 as base - # Config ARG BRANCH="master" ARG CLANG_VERSION=14 + +FROM ubuntu:20.04 as base +ARG BRANCH +ARG CLANG_VERSION + # General dependencies ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update \ @@ -22,6 +25,8 @@ RUN apt-get update \ # Build binder FROM base as build +ARG BRANCH +ARG CLANG_VERSION # Build dependencies RUN apt-get update