Skip to content

Upgrade to PHP8.2 #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0-apache
FROM php:8.2-apache

ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
Expand All @@ -16,6 +16,7 @@ RUN apt-get update && \
mariadb-client \
nano \
postfix \
unixodbc \
unixodbc-dev \
unzip \
wget \
Expand All @@ -29,15 +30,16 @@ RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen

RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
ENV ACCEPT_EULA=Y
RUN apt-get install -y \
msodbcsql17 \
mssql-tools
msodbcsql18 \
mssql-tools18 \
libgssapi-krb5-2

RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bash_profile
RUN echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc
RUN . ~/.bashrc

RUN docker-php-ext-install \
Expand All @@ -50,8 +52,8 @@ RUN docker-php-ext-install \
RUN pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system

RUN pecl install \
pdo_sqlsrv-5.9.0 \
sqlsrv-5.9.0 \
sqlsrv-5.10.1 \
pdo_sqlsrv-5.10.1 \
xdebug

COPY php.ini /usr/local/etc/php/
Expand Down