Fix WARN: RedundantTargetPlatform

Explanation: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior
This commit is contained in:
Aleksandar Puharic 2024-10-29 00:37:51 +01:00
parent d5d0754606
commit 294e7dd725
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -3,8 +3,8 @@ ARG WP_VERSION=6.1.0
ARG WP_PATCH_VERSION=5.9.1 ARG WP_PATCH_VERSION=5.9.1
# WordPress resources # WordPress resources
FROM --platform=${TARGETPLATFORM} wordpress:cli-php${PHP_VERSION} AS wp-cli FROM wordpress:cli-php${PHP_VERSION} AS wp-cli
FROM --platform=${TARGETPLATFORM} wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wp-src FROM wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wp-src
@ -31,7 +31,7 @@ COPY ["patches/${WP_PATCH_VERSION}/wp-admin-update-core.patch", "/etc/wp-mods/"]
# Stage 3 - Final # Stage 3 - Final
FROM --platform=${TARGETPLATFORM} ghcr.io/n0rthernl1ghts/wordpress-unit-base:2.1.0 FROM ghcr.io/n0rthernl1ghts/wordpress-unit-base:2.1.0
RUN apk add --update --no-cache patch RUN apk add --update --no-cache patch