Copy entire composer fileset instead of just vendor

This commit is contained in:
Aleksandar Puharic 2022-09-11 04:00:55 +02:00
parent 01482b3661
commit b3d508f391
Signed by: xZero707
GPG Key ID: 3CC53DCAA9C237BB

View File

@ -22,7 +22,7 @@ FROM --platform=${TARGETPLATFORM} wordpress:cli-php${PHP_VERSION} AS wp-cli
FROM scratch AS rootfs FROM scratch AS rootfs
COPY --from=builder ["/usr/bin/composer", "/usr/local/bin/"] COPY --from=builder ["/usr/bin/composer", "/usr/local/bin/"]
COPY --from=builder ["/var/www/composer/vendor", "/var/www/composer/vendor"] COPY --from=builder ["/var/www/composer", "/var/www/composer/"]
# Install wp-cli # Install wp-cli
COPY --from=wp-cli ["/usr/local/bin/wp", "/usr/local/bin/wp"] COPY --from=wp-cli ["/usr/local/bin/wp", "/usr/local/bin/wp"]