-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (37 loc) · 1009 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
FROM php:8.1
# keep ordered alphabetically to reduce diffs
RUN apt update && apt install -y \
acl \
apt-transport-https \
build-essential \
ca-certificates \
coreutils \
curl \
file \
gettext \
git \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmariadb-dev \
libpng-dev \
libpq-dev \
libssl-dev \
libtool \
libwebp-dev \
libxpm-dev \
libzip-dev \
locales \
mariadb-client \
wget \
xsel \
zip
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen \
&& docker-php-ext-enable opcache \
&& docker-php-ext-configure gettext --with-gettext=/usr/include/ \
&& docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype \
&& docker-php-ext-configure zip \
&& docker-php-ext-install -j$(nproc) gettext gd exif intl pdo pdo_mysql zip mysqli bcmath
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
USER www-data:www-data