File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM dunglas/frankenphp:latest
2
2
3
3
RUN apt-get update \
4
- && apt-get install -y nodejs npm unzip \
4
+ && apt-get install -y nodejs npm unzip libpq-dev \
5
5
&& apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives \
6
- && curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet
6
+ && curl https://raw.githubusercontent.com/composer/getcomposer.org/76a7060ccb93902cd7576b67264ad91c8a2700e2/web/installer | php -- --quiet \
7
+ && docker-php-ext-configure pgsql \
8
+ && docker-php-ext-install pdo pdo_pgsql pgsql \
9
+ && docker-php-source delete
7
10
8
11
WORKDIR /app
9
12
@@ -28,4 +31,5 @@ RUN npm run build \
28
31
&& apt-get -y remove npm unzip \
29
32
&& apt-get -y clean \
30
33
&& apt-get -y autoremove \
31
- && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
34
+ && mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" \
35
+ && echo "extension=pdo_pgsql.so" > $PHP_INI_DIR/conf.d/pdo_pgsql.ini
You can’t perform that action at this time.
0 commit comments