Skip to content

Commit

Permalink
Persist container ARGs across multiple stages (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
rgov authored Feb 28, 2024
1 parent a7c4388 commit e2ba081
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit e2ba081

Please sign in to comment.