Standardize casing in Dockerfiles

This commit is contained in:
Joshua Casey
2024-12-02 10:00:39 -06:00
parent 21bce1cb92
commit 9cfbbb541a
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ ARG BUILD_IMAGE=golang:1.23.3@sha256:73f06be4578c9987ce560087e2e2ea6485fb605e391
ARG BASE_IMAGE=gcr.io/distroless/static:nonroot@sha256:6cd937e9155bdfd805d1b94e037f9d6a899603306030936a3b11680af0c2ed58
# Prepare to cross-compile by always running the build stage in the build platform, not the target platform.
FROM --platform=$BUILDPLATFORM $BUILD_IMAGE as build-env
FROM --platform=$BUILDPLATFORM $BUILD_IMAGE AS build-env
WORKDIR /work

View File

@@ -21,7 +21,7 @@ ARG BASE_IMAGE=gcr.io/distroless/static:nonroot@sha256:6cd937e9155bdfd805d1b94e0
# This is not currently using --platform to prepare to cross-compile because we use gcc below to build
# platform-specific GCO code. This makes multi-arch builds slow due to target platform emulation.
FROM $BUILD_IMAGE as build-env
FROM $BUILD_IMAGE AS build-env
WORKDIR /work