Skip to content

Commit

Permalink
Merge pull request #66 from erikn69/patch-3
Browse files Browse the repository at this point in the history
feat: Support PHP 8.4
  • Loading branch information
bestlong authored Dec 4, 2024
2 parents ccf2817 + 9d4619b commit 757bce3
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dockerpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
php_version: ["5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3", "8.4"]
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ env:
- PHP_VERSION=7.3
- PHP_VERSION=7.4
- PHP_VERSION=8.0
- PHP_VERSION=8.1
- PHP_VERSION=8.2
- PHP_VERSION=8.3
- PHP_VERSION=8.4

# Installing a newer Docker version
before_install:
Expand Down
73 changes: 73 additions & 0 deletions Dockerfile-8.4
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
#
#--------------------------------------------------------------------------
# Image Setup
#--------------------------------------------------------------------------
#

FROM phusion/baseimage:focal-1.0.0

LABEL io.laradock.image.authors="Mahm1oud Zalt <mahmoud@zalt.me>"
LABEL io.laradock.image.authors="Thomas Combe <tcombe@webqam.fr>"

ENV DEBIAN_FRONTEND=noninteractive
RUN locale-gen en_US.UTF-8

ENV LANGUAGE=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
ENV LC_CTYPE=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV TERM xterm

RUN set -eux \
# Add the "PHP 8" ppa
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:ondrej/php \
#
#--------------------------------------------------------------------------
# Software's Installation
#--------------------------------------------------------------------------
#
&& echo 'DPkg::options { "--force-confdef"; };' >> /etc/apt/apt.conf \
# Install "PHP Extentions", "libraries", "Software's"
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --allow-downgrades --allow-remove-essential \
--allow-change-held-packages \
php8.4-cli \
php8.4-common \
php8.4-curl \
php8.4-intl \
php8.4-xml \
php8.4-mbstring \
php8.4-mysql \
php8.4-pgsql \
php8.4-sqlite \
php8.4-sqlite3 \
php8.4-zip \
php8.4-bcmath \
php8.4-memcached \
php8.4-gd \
php8.4-dev \
pkg-config \
libcurl4-openssl-dev \
libedit-dev \
libssl-dev \
libxml2-dev \
xz-utils \
libsqlite3-dev \
rsync \
sqlite3 \
git \
curl \
vim \
nano \
tree \
postgresql-client \
&& apt-get clean \
#####################################
# Composer:
#####################################
# Install composer and add its bin to the PATH.
&& curl -s http://getcomposer.org/installer | php \
&& echo "export PATH=${PATH}:/var/www/vendor/bin" >> ~/.bashrc \
&& mv composer.phar /usr/local/bin/composer

0 comments on commit 757bce3

Please sign in to comment.