From 7ae20985b170348994ef900ce96c3c50723f463d Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Tue, 22 Jan 2019 12:42:41 +0100 Subject: [PATCH] pgsql and pdo are needed in the second stage --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dcb7229..8660123 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ FROM composer AS base -RUN apk add postgresql-dev openldap-dev \ - && docker-php-ext-install pdo mbstring pdo_pgsql ldap - WORKDIR /app COPY src/composer.json src/composer.lock /app/ RUN composer install --no-autoloader -FROM composer AS install +FROM composer +RUN apk add postgresql-dev openldap-dev \ + && docker-php-ext-install pdo mbstring pdo_pgsql ldap COPY ./src /app COPY --from=base /app/vendor /app/vendor RUN composer install