Skip to content

Commit 7821dc2

Browse files
authored
Updated php version to 8.1
1 parent bda2278 commit 7821dc2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@ ARG DEBIAN_FRONTEND=noninteractive
33
USER root
44
COPY php.ini /tmp
55
RUN apt-get update -yq \
6+
# Add updated php sources
7+
&& apt-get install curl -yq \
8+
&& curl -sSL https://packages.sury.org/php/README.txt | bash -x \
69
# Install some common packages
7-
&& apt-get install curl git imagemagick nano openssh-server sqlite3 wget unzip -yq \
10+
&& apt-get install git imagemagick nano openssh-server sqlite3 wget unzip -yq \
811
&& sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' /etc/ImageMagick-6/policy.xml \
912
# Install PHP CLI with some extensions for Drupal development
10-
&& apt-get install php-cli php-apcu php-curl php-dom php-gd php-imagick php-mbstring php-sqlite3 php-zip -yq \
13+
&& apt-get install php8.1-cli php8.1-apcu php8.1-curl php8.1-gd php8.1-imagick php8.1-mbstring php8.1-sqlite3 php8.1-zip -yq \
1114
&& apt-get install php-pear php-dev -yq \
12-
&& pear config-set php_ini /etc/php/7.4/cli/php.ini \
15+
&& pear config-set php_ini /etc/php/8.1/cli/php.ini \
1316
&& pecl install xdebug \
14-
&& cat /tmp/php.ini >> /etc/php/7.4/cli/php.ini \
17+
&& cat /tmp/php.ini >> /etc/php/8.1/cli/php.ini \
1518
# Install NodeJS LTS
1619
&& curl -sL https://deb.nodesource.com/setup_lts.x | bash \
1720
&& apt-get install nodejs -yq \

0 commit comments

Comments
 (0)