Rename build stage

This commit is contained in:
Aleksandar Puharic 2024-05-22 01:48:28 +02:00
parent 3b184d71a7
commit 48ba044713
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -1,5 +1,5 @@
ARG WP_VERSION=6.5.3
FROM ghcr.io/n0rthernl1ghts/wordpress:${WP_VERSION} AS composer-tools
FROM ghcr.io/n0rthernl1ghts/wordpress:${WP_VERSION} AS composer-build
COPY --from=composer:2.7 ["/usr/bin/composer", "/usr/local/bin/composer"]
@ -16,9 +16,6 @@ RUN set -eux \
FROM scratch AS rootfs
# Install composer
COPY --from=composer:2.7 ["/usr/bin/composer", "/usr/local/bin/composer"]
# Install shellcheck
COPY --from=koalaman/shellcheck:stable ["/bin/shellcheck", "/usr/local/bin/shellcheck"]
@ -28,8 +25,9 @@ COPY --from=mvdan/shfmt:latest ["/bin/shfmt", "/usr/local/bin/shfmt"]
# Install hadolint
COPY --from=hadolint/hadolint:latest ["/bin/hadolint", "/usr/local/bin/hadolint"]
# Composer tools
COPY --from=composer-tools ["/tmp/composer/", "/root/.composer/"]
# Install composer
COPY --from=composer-build ["/usr/local/bin/composer", "/usr/local/bin/"]
COPY --from=composer-build ["/tmp/composer/", "/root/.composer/"]