diff --git a/Dockerfile b/Dockerfile index c058caa1..c822a7cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-bookworm as builder +FROM golang:1.22-bookworm AS builder ENV GOFLAGS="-mod=readonly" diff --git a/Dockerfile.distroless b/Dockerfile.distroless index c8bf6e27..ae62dccf 100644 --- a/Dockerfile.distroless +++ b/Dockerfile.distroless @@ -1,4 +1,4 @@ -FROM golang:1.22-bookworm as builder +FROM golang:1.22-bookworm AS builder ENV CGO_ENABLED=0 GOFLAGS="-mod=readonly"