Skip to content

Commit

Permalink
fix: #30 remove pdo_pgsql from php.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Jul 5, 2024
1 parent 890c6d1 commit 42eca94
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ RUN apt-get update \
&& docker-php-ext-configure pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& docker-php-source delete \
&& awk 'NR==1 {print; print "\tservers {\n\t\ttrusted_proxies static private_ranges\n\t}\n"; next} 1' /etc/caddy/Caddyfile > /etc/caddy/Caddyfile
&& awk 'NR==1 {print; print "\tservers {\n\t\ttrusted_proxies static private_ranges\n\t}\n"; next} 1' /etc/caddy/Caddyfile > /etc/caddy/Caddyfile.tmp \
&& mv /etc/caddy/Caddyfile.tmp /etc/caddy/Caddyfile

WORKDIR /app

Expand All @@ -33,5 +34,4 @@ RUN php composer.phar install \
&& 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" \
&& echo "extension=pdo_pgsql.so" > $PHP_INI_DIR/conf.d/pdo_pgsql.ini
&& mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

0 comments on commit 42eca94

Please sign in to comment.