-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
44 lines (34 loc) · 940 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM php:8.2-fpm
ARG user
RUN apt-get update && apt-get install -y \
git \
curl \
vim \
libpng-dev \
libonig-dev \
libxml2-dev \
zip \
unzip \
libzip-dev \
libcurl4-openssl-dev \
pkg-config \
libssl-dev \
libpq-dev \
gcc \
make \
&& docker-php-ext-configure gd \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \
&& docker-php-ext-install pdo pdo_pgsql pgsql \
&& docker-php-ext-install zip \
&& docker-php-source delete \
&& docker-php-ext-install pcntl
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
RUN groupadd -g 1000 www
RUN useradd -u 1000 -ms /bin/bash -g www www
WORKDIR /var/www/app
COPY . /var/www/app
RUN composer install --ignore-platform-reqs
RUN pecl install xdebug \
&& docker-php-ext-enable xdebug