git » chasquid » commit 3ff26fa

docker: Fix Dockerfile style warnings

author Guiorgy
2025-08-02 17:55:53 UTC
committer Alberto Bertogli
2025-08-03 10:03:16 UTC
parent ad7975c82680de20b8e913aae511944aa06fb115

docker: Fix Dockerfile style warnings

This patch fixes some Dockerfile style warnings:

- `WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match`
- `LegacyKeyValueFormat: "ENV key=value" should be used instead of
  legacy "ENV key value" format`

https://github.com/albertito/chasquid/pull/68

Amended-by: Alberto Bertogli <albertito@blitiri.com.ar>
  Adjusted commit message.

docker/Dockerfile +2 -2

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 9cc0afd..ce38513 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -8,7 +8,7 @@
 # See the README.md file for more details.
 
 # Build the binaries.
-FROM golang:latest as build
+FROM golang:latest AS build
 WORKDIR /go/src/blitiri.com.ar/go/chasquid
 COPY . .
 RUN go get -d ./...
@@ -19,7 +19,7 @@ FROM debian:stable
 
 # Make debconf/frontend non-interactive, to avoid distracting output about the
 # lack of $TERM.
-ENV DEBIAN_FRONTEND noninteractive
+ENV DEBIAN_FRONTEND=noninteractive
 
 # Install the packages we need.
 # This includes chasquid, which sets up good defaults.