From 7559e1be4c9de6b1ff1082992764676398fd84ab Mon Sep 17 00:00:00 2001 From: Nicolas Duchon Date: Mon, 9 Sep 2024 21:42:49 +0200 Subject: [PATCH] build: apply Dockerfile rules --- Dockerfile.alpine | 4 ++-- Dockerfile.debian | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile.alpine b/Dockerfile.alpine index 4adcac40..7997e5d1 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,7 +1,7 @@ ARG DOCKER_GEN_VERSION=main # Build docker-gen from scratch -FROM --platform=$BUILDPLATFORM golang:1.23.1-alpine as go-builder +FROM --platform=$BUILDPLATFORM golang:1.23.1-alpine AS go-builder ENV CGO_ENABLED=0 @@ -24,7 +24,7 @@ RUN set -eux; \ go env | grep -E 'OS=|ARCH=|ARM=|AMD64='; \ go build -ldflags "-X main.buildVersion=${DOCKER_GEN_VERSION}" -o docker-gen ./cmd/docker-gen -FROM --platform=$TARGETPLATFORM alpine:3.20.3 +FROM alpine:3.20.3 ARG DOCKER_GEN_VERSION ENV DOCKER_GEN_VERSION=${DOCKER_GEN_VERSION} \ diff --git a/Dockerfile.debian b/Dockerfile.debian index e67675da..e355315c 100644 --- a/Dockerfile.debian +++ b/Dockerfile.debian @@ -1,7 +1,7 @@ ARG DOCKER_GEN_VERSION=main # Build docker-gen from scratch -FROM --platform=$BUILDPLATFORM golang:1.23.1 as go-builder +FROM --platform=$BUILDPLATFORM golang:1.23.1 AS go-builder ENV CGO_ENABLED=0 @@ -24,7 +24,7 @@ RUN set -eux; \ go env | grep -E 'OS=|ARCH=|ARM=|AMD64='; \ go build -ldflags "-X main.buildVersion=${DOCKER_GEN_VERSION}" -o docker-gen ./cmd/docker-gen -FROM --platform=$TARGETPLATFORM debian:12.7-slim +FROM debian:12.7-slim ARG DOCKER_GEN_VERSION ENV DOCKER_GEN_VERSION=${DOCKER_GEN_VERSION} \