From 0ea408379a26d43641b6c7d18d91bec48690ceb4 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 12 Jul 2024 11:17:02 +0530 Subject: [PATCH] [server] [cli] Fix docker "FROM AS" case warnings With the latest Docker update (27.0.3), it now warns about the "FROM" and "AS" in the Dockerfile not matching. E.g. when building the server docker image: > WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1) --- cli/Dockerfile | 2 +- cli/Dockerfile-x86 | 2 +- server/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/Dockerfile b/cli/Dockerfile index 827269f5f8..4e00a47645 100644 --- a/cli/Dockerfile +++ b/cli/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine3.17 as builder +FROM golang:1.20-alpine3.17 AS builder RUN apk add --no-cache gcc musl-dev git build-base pkgconfig libsodium-dev ENV GOOS=linux diff --git a/cli/Dockerfile-x86 b/cli/Dockerfile-x86 index 23a877cb9f..42ea9c90dc 100644 --- a/cli/Dockerfile-x86 +++ b/cli/Dockerfile-x86 @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine3.17@sha256:9c2f89db6fda13c3c480749787f62fed5831699bb2c32881b8f327f1cf7bae42 as builder386 +FROM golang:1.20-alpine3.17@sha256:9c2f89db6fda13c3c480749787f62fed5831699bb2c32881b8f327f1cf7bae42 AS builder386 RUN apt-get update RUN apt-get install -y gcc RUN apt-get install -y git diff --git a/server/Dockerfile b/server/Dockerfile index d902deebfd..778d5ed8ee 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21-alpine3.17 as builder +FROM golang:1.21-alpine3.17 AS builder RUN apk add --no-cache gcc musl-dev git build-base pkgconfig libsodium-dev ENV GOOS=linux