Postgres and mysql dependencies in docker file (#498)
This commit is contained in:
parent
fa0ac8cd23
commit
97e0390680
10
Dockerfile
10
Dockerfile
|
@ -2,12 +2,14 @@ FROM php:7.4-apache
|
||||||
|
|
||||||
# Install extensions
|
# Install extensions
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
|
libpq-dev \
|
||||||
&& docker-php-ext-install -j$(nproc) iconv \
|
&& docker-php-ext-install -j$(nproc) iconv \
|
||||||
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ \
|
||||||
&& docker-php-ext-install -j$(nproc) gd
|
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
|
||||||
|
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql pdo_pgsql pgsql
|
||||||
|
|
||||||
# Prepare files and folders
|
# Prepare files and folders
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue