From 831c6d60486adfa943644ac91bde5494c4882af8 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Fri, 19 Jul 2024 11:36:23 +0200 Subject: [PATCH] Fix warnings during docker build Building the container image started showing the following two warning for me recently which are addressed by this commit: 2 warnings found (use --debug to expand): - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 3) - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 4) --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 086897bb..f04a576d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # Icinga Notifications | (c) 2023 Icinga GmbH | GPLv2+ -FROM docker.io/library/golang as build -ENV CGO_ENABLED 0 +FROM docker.io/library/golang AS build +ENV CGO_ENABLED=0 COPY . /src/icinga-notifications WORKDIR /src/icinga-notifications