Skip to content

Commit

Permalink
build: Install extensions using the official PHP recommended method.
Browse files Browse the repository at this point in the history
  • Loading branch information
LamGC committed Nov 27, 2024
1 parent 90ba90b commit 4ba1c29
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
FROM php:8.1-apache

RUN apt update && apt install -y php-intl php-gettext php-openssl php-filter php-tokenizer php-pdo \
php-mysqlnd php-pgsql php-sqlite3
RUN apt-get update && apt-get install -y \
libicu-dev \
libssl-dev \
libsqlite3-dev \
libpq-dev \
gettext

RUN docker-php-ext-install -j$(nproc) \
intl \
gettext \
pdo_pgsql

COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
Expand Down

0 comments on commit 4ba1c29

Please sign in to comment.