FROM composer
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