Skip to content

Commit

Permalink
feat: #30 bundle pdo_pgsql
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Jul 4, 2024
1 parent 2ddcf9c commit 6dbbe93
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
FROM dunglas/frankenphp:latest

RUN apt-get update \
&& apt-get install -y nodejs npm unzip \
&& apt-get install -y nodejs npm unzip libpq-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives \
&& curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet
&& curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet \
&& docker-php-ext-configure pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& docker-php-source delete

WORKDIR /app

Expand All @@ -28,4 +31,5 @@ RUN npm run build \
&& apt-get -y remove npm unzip \
&& apt-get -y clean \
&& apt-get -y autoremove \
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
&& echo "extension=pdo_pgsql.so" > $PHP_INI_DIR/conf.d/pdo_pgsql.ini

0 comments on commit 6dbbe93

Please sign in to comment.