change phpfpm to debian-bulleye with downgraded tls support

This commit is contained in:
2024-09-25 14:49:37 -05:00
parent f536c40268
commit 496d8000b0
4 changed files with 394 additions and 3 deletions

View File

@@ -1,3 +1,21 @@
FROM php:8.3-fpm-alpine
RUN docker-php-ext-install mysqli pdo_mysql
FROM php:8.3-fpm-bullseye
# Add the installer for PHP extensions
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# Install dependencies for building OpenSSL
RUN apt-get update && apt-get install -y \
curl \
build-essential \
checkinstall \
zlib1g-dev \
vim
# Install PHP extensions
RUN install-php-extensions mysqli pdo_mysql sqlsrv pdo_sqlsrv
# Clean up unnecessary files
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY openssl.cnf /etc/ssl/openssl.cnf