Skip to content

Commit

Permalink
Fix WARN: RedundantTargetPlatform
Browse files Browse the repository at this point in the history
Explanation: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior
  • Loading branch information
xZero707 committed Oct 28, 2024
1 parent bdd828e commit 1a15ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ COPY ["./rootfs/", "/"]
################################################
ARG PHP_VERSION
ARG UNIT_VERSION
FROM --platform=${TARGETPLATFORM} ghcr.io/n0rthernl1ghts/unit-php:${UNIT_VERSION}-PHP${PHP_VERSION}
FROM ghcr.io/n0rthernl1ghts/unit-php:${UNIT_VERSION}-PHP${PHP_VERSION}

RUN set -eux \
&& apk add --update --no-cache bash tzdata imagemagick ghostscript \
Expand Down

0 comments on commit 1a15ee1

Please sign in to comment.