From 294e7dd725dfa49a9bcbf426df5c918f6ec18af6 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Tue, 29 Oct 2024 00:37:51 +0100 Subject: [PATCH] Fix WARN: RedundantTargetPlatform Explanation: Setting platform to predefined ${TARGETPLATFORM} in FROM is redundant as this is the default behavior --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 73acd87..8dc7828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ ARG WP_VERSION=6.1.0 ARG WP_PATCH_VERSION=5.9.1 # WordPress resources -FROM --platform=${TARGETPLATFORM} wordpress:cli-php${PHP_VERSION} AS wp-cli -FROM --platform=${TARGETPLATFORM} wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wp-src +FROM wordpress:cli-php${PHP_VERSION} AS wp-cli +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 -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