From 28bc42bac83cd260259c26300d0ccbc533f4b327 Mon Sep 17 00:00:00 2001 From: Mirah Gary Date: Fri, 30 Aug 2024 13:58:22 +0200 Subject: [PATCH] Fix docker linter warnings. (#880) --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c0f5013..5ad5699f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.22 as builder +FROM --platform=$BUILDPLATFORM golang:1.22 AS builder WORKDIR /workspace # Copy the Go Modules manifests @@ -19,14 +19,14 @@ COPY rabbitmqclient/ rabbitmqclient/ # Build ARG TARGETOS ARG TARGETARCH -ENV GOOS $TARGETOS -ENV GOARCH $TARGETARCH +ENV GOOS=$TARGETOS +ENV GOARCH=$TARGETARCH # Build RUN CGO_ENABLED=0 GO111MODULE=on go build -a -tags timetzdata -o manager main.go # --------------------------------------- -FROM alpine:latest as etc-builder +FROM alpine:latest AS etc-builder RUN echo "messaging-topology-operator:x:1001:" > /etc/group && \ echo "messaging-topology-operator:x:1001:1001::/home/messaging-topology-operator:/usr/sbin/nologin" > /etc/passwd