mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 12:01:51 +01:00
Rename build stage
This commit is contained in:
parent
3b184d71a7
commit
48ba044713
|
@ -1,5 +1,5 @@
|
||||||
ARG WP_VERSION=6.5.3
|
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"]
|
COPY --from=composer:2.7 ["/usr/bin/composer", "/usr/local/bin/composer"]
|
||||||
|
|
||||||
|
@ -16,9 +16,6 @@ RUN set -eux \
|
||||||
|
|
||||||
FROM scratch AS rootfs
|
FROM scratch AS rootfs
|
||||||
|
|
||||||
# Install composer
|
|
||||||
COPY --from=composer:2.7 ["/usr/bin/composer", "/usr/local/bin/composer"]
|
|
||||||
|
|
||||||
# Install shellcheck
|
# Install shellcheck
|
||||||
COPY --from=koalaman/shellcheck:stable ["/bin/shellcheck", "/usr/local/bin/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
|
# Install hadolint
|
||||||
COPY --from=hadolint/hadolint:latest ["/bin/hadolint", "/usr/local/bin/hadolint"]
|
COPY --from=hadolint/hadolint:latest ["/bin/hadolint", "/usr/local/bin/hadolint"]
|
||||||
|
|
||||||
# Composer tools
|
# Install composer
|
||||||
COPY --from=composer-tools ["/tmp/composer/", "/root/.composer/"]
|
COPY --from=composer-build ["/usr/local/bin/composer", "/usr/local/bin/"]
|
||||||
|
COPY --from=composer-build ["/tmp/composer/", "/root/.composer/"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user