Skip to content

Commit 5f071ed

Browse files
committed
fix warnings during docker build
Signed-off-by: Iceber Gu <[email protected]>
1 parent ba97edc commit 5f071ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
ARG BUILDER_IMAGE
2-
FROM --platform=$BUILDPLATFORM ${BUILDER_IMAGE} as builder
1+
# To avoid the `InvalidDefaultArgInFrom` warning during build time,
2+
# we add a non-existent default builder image.
3+
# https://docs.docker.com/reference/build-checks/invalid-default-arg-in-from/
4+
ARG BUILDER_IMAGE='clusterpedia.io/builder:not-build'
5+
FROM --platform=$BUILDPLATFORM ${BUILDER_IMAGE} AS builder
36
WORKDIR /clusterpedia
47

58
ARG BIN_NAME

0 commit comments

Comments
 (0)