Skip to content

Commit b4bbe02

Browse files
committed
update ubuntu:22.04, PHP 8.3
1 parent bf69c05 commit b4bbe02

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

Dockerfile

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:20.04
1+
FROM ubuntu:22.04
22

33
# Metadata as defined at http://label-schema.org
44
LABEL org.label-schema.name="Apache Docker" \
@@ -21,29 +21,31 @@ RUN apt-get update && apt-get install -y locales && locale-gen ${OS_LOCALE}
2121

2222
# Install required packages
2323
RUN apt-get install -y \
24-
software-properties-common \
25-
python3.7 \
24+
software-properties-common
25+
26+
# Install additional packages from PPA
27+
RUN add-apt-repository -y ppa:ondrej/php \
28+
&& add-apt-repository -y ppa:deadsnakes/ppa \
29+
&& apt-get update && apt-get install -y
30+
31+
RUN apt-get install -y \
32+
python3.8 \
2633
curl \
2734
unzip \
2835
p7zip-full \
2936
apache2 \
3037
libsasl2-modules \
31-
libapache2-mod-php7.4 \
3238
libmcrypt-dev \
33-
php7.4-cli \
34-
php7.4-dev \
35-
php7.4-readline \
36-
php7.4-mbstring \
37-
php7.4-zip \
38-
php7.4-intl \
39-
php7.4-xml \
40-
php7.4-bcmath \
41-
php7.4-xmlrpc \
42-
php7.4-json \
43-
php7.4-curl \
44-
php7.4-gd \
45-
php7.4-pgsql \
46-
php7.4-mysql \
39+
libapache2-mod-php8.3 \
40+
php-pear \
41+
php8.3 \
42+
php8.3-cli \
43+
php8.3-bz2 \
44+
php8.3-curl \
45+
php8.3-mbstring \
46+
php8.3-intl \
47+
php8.3-fpm \
48+
php-dev \
4749
git \
4850
cron \
4951
ghostscript \
@@ -64,14 +66,9 @@ RUN apt-get install -y \
6466
&& apt-get clean \
6567
&& rm -rf /var/lib/apt/lists/*
6668

67-
# Install additional packages from PPA
68-
RUN add-apt-repository -y ppa:ondrej/php \
69-
&& add-apt-repository -y ppa:deadsnakes/ppa \
70-
&& apt-get update && apt-get install -y
71-
7269
# Install and configure pecl extensions
7370
RUN pecl channel-update pecl.php.net \
74-
&& pecl install mcrypt-1.0.3 \
71+
&& pecl install mcrypt-1.0.7 \
7572
&& pecl install redis -y
7673

7774
# Enable Apache mods.

0 commit comments

Comments
 (0)