Skip to content

Commit a7af800

Browse files
committed
feat: php8
1 parent 4019816 commit a7af800

1 file changed

Lines changed: 32 additions & 19 deletions

File tree

Dockerfile

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,41 @@
1-
FROM php:7.3.2
1+
FROM php:8.0.11
22

3-
# RUN echo "Install libs & PHP extensions"
4-
RUN apt-get update && apt-get install -y \
5-
zip \
6-
libzip-dev \
3+
# keep ordered alphabetically to reduce diffs
4+
RUN apt update && apt install -y \
5+
acl \
6+
apt-transport-https \
7+
build-essential \
8+
ca-certificates \
9+
coreutils \
10+
curl \
11+
file \
12+
gettext \
713
git \
814
libfreetype6-dev \
915
libicu-dev \
1016
libjpeg62-turbo-dev \
11-
gettext \
12-
locales
13-
14-
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
17+
libmariadb-dev \
18+
libpng-dev \
19+
libpq-dev \
20+
libssl-dev \
21+
libtool \
22+
libwebp-dev \
23+
libxpm-dev \
24+
libzip-dev \
25+
locales \
26+
mariadb-client \
27+
wget \
28+
xsel \
29+
zip
1530

16-
RUN docker-php-ext-configure gettext --with-gettext=/usr/include/ \
17-
&& docker-php-ext-install -j$(nproc) gettext \
18-
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
19-
&& docker-php-ext-install -j$(nproc) \
20-
zip \
21-
pdo_mysql \
22-
gd \
23-
intl \
24-
bcmath
31+
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen \
32+
&& docker-php-ext-enable opcache \
33+
&& docker-php-ext-configure gettext --with-gettext=/usr/include/ \
34+
&& docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype \
35+
&& docker-php-ext-configure zip \
36+
&& docker-php-ext-install -j$(nproc) gettext gd exif intl pdo pdo_mysql zip mysqli bcmath
2537

26-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin/ --filename=composer
38+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
39+
ENV COMPOSER_ALLOW_SUPERUSER=1
2740

2841
USER www-data:www-data

0 commit comments

Comments
 (0)