From e83085aeaf51eaf7a9851d96906af6c99f522c34 Mon Sep 17 00:00:00 2001 From: Nitin Goyal Date: Wed, 29 Jan 2025 10:53:12 +0530 Subject: [PATCH] dockerfile: fix casing warning in Dockerfile Docker requires consistent casing for keywords. If a keyword is in uppercase, all keywords should be in uppercase. If a keyword is in lowercase, all keywords should be in lowercase. The following warning appears while building images: FromAsCasing: 'as' and 'FROM' keywords' casing do not match Signed-off-by: Nitin Goyal --- Dockerfile | 2 +- catalog.deps.Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1cde12a01..467fc2771 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.22 as builder +FROM golang:1.22 AS builder WORKDIR /workspace diff --git a/catalog.deps.Dockerfile b/catalog.deps.Dockerfile index 6d31aa2c2..32337761b 100644 --- a/catalog.deps.Dockerfile +++ b/catalog.deps.Dockerfile @@ -1,5 +1,5 @@ # The base image which contain rm and sed command -FROM cirros as builder +FROM cirros AS builder # Copy catalog files COPY catalog /configs