diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..2fca0d57ca4b965197eb6b15ee191aeceb45c286 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,19 @@ +FROM php:fpm-alpine + +WORKDIR "/app" + +COPY .. . + +RUN set -ex \ + && apk --no-cache add \ + postgresql-dev + +RUN docker-php-ext-install pdo pdo_pgsql + +ENV COMPOSER_ALLOW_SUPERUSER=1 + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN composer install + +CMD ["php-fpm"]