Verified Commit 4071e9fb authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Make build issues easier to track down with individual stage names

parent 6d8e716c
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -9,15 +9,18 @@ COPY data/nginx /etc/nginx


FROM php:${php_version:+$php_version-}fpm-alpine as deps
RUN --mount=type=bind,source=scripts/install-deps.sh,target=/stage /stage
RUN --mount=type=bind,source=scripts/install-deps.sh,target=/install-deps \
	/install-deps

FROM deps as compile
RUN --mount=type=bind,source=scripts/install-build-deps.sh,target=/stage /stage
RUN --mount=type=bind,source=scripts/compile-dist-ext.sh,target=/stage /stage
RUN --mount=type=bind,source=scripts/install-build-deps.sh,target=/install-build-deps \
	/install-build-deps
RUN --mount=type=bind,source=scripts/compile-dist-ext.sh,target=/compile-dist-ext \
	/compile-dist-ext

ARG imagick_version
RUN --mount=type=bind,source=scripts/compile-imagick.sh,target=/stage \
    /stage ${imagick_version}
RUN --mount=type=bind,source=scripts/compile-imagick.sh,target=/compile-imagick \
    /compile-imagick ${imagick_version}

FROM deps as fastcgi

@@ -32,8 +35,8 @@ COPY scripts/wp.sh /usr/local/bin/wp
COPY data/composer.json /app/composer.json

ARG wp_version=latest
RUN --mount=type=bind,source=scripts/install-wp.sh,target=/stage \
    /stage ${wp_version}
RUN --mount=type=bind,source=scripts/install-wp.sh,target=/install-wp \
    /install-wp ${wp_version}

COPY plugins/* wp-content/mu-plugins/
COPY data/fpm.conf /usr/local/etc/php-fpm.d/image.conf