deactivated legacy, updated php to 8.1, misc

This commit is contained in:
2025-03-21 15:31:18 +01:00
parent 70f5e01793
commit 43fd5dae4b
8 changed files with 194 additions and 81 deletions

View File

@@ -1,4 +1,4 @@
FROM php:7.4-fpm
FROM php:8.1-fpm-bullseye
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
@@ -19,7 +19,7 @@ RUN apt-get update && apt-get install -y \
docker-php-ext-install opcache && \
docker-php-ext-install bcmath && \
apt-get install -y git vim && \
pecl install redis-4.3.0 && \
pecl install redis-5.3.7 && \
pecl install xdebug-3.1.3 && \
docker-php-ext-enable redis xdebug
@@ -69,6 +69,10 @@ RUN if getent group ${USER_GNAME} ; then groupdel ${USER_GNAME}; fi &&\
COPY ./bashrc /home/${USER_UNAME}/.bashrc
COPY ./inputrc /home/${USER_UNAME}/.inputrc
# https://github.com/ProgDroid/composer_update_autocomplete
RUN mkdir /home/${USER_UNAME}/.bin
COPY ./composer_update_autocomplete /home/${USER_UNAME}/.bin/composer_update_autocomplete
RUN printf "complete -C /home/${USER_UNAME}/.composer_update_autocomplete/src/main.rs composer update" >> /home/${USER_UNAME}/.bashrc
# https://dev.to/s1ntaxe770r/how-to-setup-ssh-within-a-docker-container-i5i
RUN apt-get install -y openssh-server openssh-client

Binary file not shown.