Skip to content

Commit b2b5590

Browse files
committed
Dockerfile: fix linting warnings
The 'as' keyword should match the case of the 'from' keyword FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/ Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior RedundantTargetPlatform: Setting platform to predefined $TARGETPLATFORM in FROM is redundant as this is the default behavior More info: https://docs.docker.com/go/dockerfile/rule/redundant-target-platform/ Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 62bc597 commit b2b5590

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,8 @@ FROM binary-dummy AS containerutil-linux
454454
FROM containerutil-build AS containerutil-windows-amd64
455455
FROM containerutil-windows-${TARGETARCH} AS containerutil-windows
456456
FROM containerutil-${TARGETOS} AS containerutil
457-
FROM docker/buildx-bin:${BUILDX_VERSION} as buildx
458-
FROM docker/compose-bin:${COMPOSE_VERSION} as compose
457+
FROM docker/buildx-bin:${BUILDX_VERSION} AS buildx
458+
FROM docker/compose-bin:${COMPOSE_VERSION} AS compose
459459

460460
FROM base AS dev-systemd-false
461461
COPY --link --from=frozen-images /build/ /docker-frozen-images
@@ -650,7 +650,7 @@ COPY --link --from=build /build /
650650
# smoke tests
651651
# usage:
652652
# > docker buildx bake binary-smoketest
653-
FROM --platform=$TARGETPLATFORM base AS smoketest
653+
FROM base AS smoketest
654654
WORKDIR /usr/local/bin
655655
COPY --from=build /build .
656656
RUN <<EOT

0 commit comments

Comments
 (0)