updated php to 8.1

This commit is contained in:
2023-10-30 18:30:51 +01:00
parent 442bd64a9b
commit 4cd581aa9a
11 changed files with 20 additions and 29 deletions
@@ -1,4 +1,4 @@
FROM php:7.4-fpm
FROM php:8.1-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
@@ -20,7 +20,7 @@ RUN apt-get update && apt-get install -y \
RUN apt-get install -y git vim
RUN pecl install redis-5.3.3 && \
pecl install xdebug-2.9.2 && \
pecl install xdebug-3.2.2 && \
docker-php-ext-enable redis xdebug
RUN export COMPOSER_HOME=/usr/local/composer && \
@@ -33,12 +33,12 @@ RUN export COMPOSER_HOME=/usr/local/composer && \
-L -o /usr/local/bin/drush && \
chmod +x /usr/local/bin/drush
RUN apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && \
apt-get install -y nodejs yarn
# RUN apt-get install -y curl && \
# curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
# curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
# echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
# apt-get update && \
# apt-get install -y nodejs yarn
RUN apt-get install -y rsyslog
COPY ./rsyslog-drupal.conf /etc/rsyslog.d/drupal.conf
@@ -1,4 +1,4 @@
PS1='\e[36m\e[1mPHP-7.4\e[0m:\e[90m\w\e[0m\n$ '
PS1='\e[36m\e[1mPHP-8.1\e[0m:\e[90m\w\e[0m\n$ '
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'