Skip to content

Commit

Permalink
build(docker): Use multi-stage FROM directive to support dependabot
Browse files Browse the repository at this point in the history
Currently dependabot only updates base images if they follow the FROM
directive.
To support base_image arg we need to specify default in a FROM instead of ARG

Signed-off-by: Daniil Fedotov <[email protected]>
  • Loading branch information
hairyhum committed Dec 9, 2024
1 parent 79b0c96 commit 9da3db9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ARG base_image=registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542
FROM ${base_image}
ARG base_image=default
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.4-1227.1726694542 AS default
FROM ${base_image} as base
ARG kanister_version

LABEL name=ARG_BIN \
Expand Down

0 comments on commit 9da3db9

Please sign in to comment.