php Dockerfile Пример установки: php fpm, composer и псевдоним для codeception

Например так:

FROM php:8.1-fpm-alpine3.14

RUN apk --no-cache update \
    && apk add --no-cache autoconf g++ make \
    postgresql-dev \
    \
    && pecl install xdebug-3.1.2 \
    && rm -rf /tmp/pear \
    \
    && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
    \
    && docker-php-ext-install pdo_pgsql
    
#composer
ENV COMPOSER_ALLOW_SUPERUSER 1
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer

#codeception alias
RUN echo 'alias cept="./vendor/bin/codecept"' >> ~/.profile

WORKDIR /var/www

Key Words for FKN + antitotal forum (CS VSU):