Skip to content
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

7.4 #6

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php: ["7.0","7.1","7.2","7.3"]
php: ["7.0","7.1","7.2","7.3","7.4"]
steps:
- uses: actions/checkout@v1
- name: enable experimental features
Expand Down
21 changes: 18 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

ARG PHP=7.1
ARG PHP=7.4
FROM php:$PHP-apache
#libs: libjudy-dev need this for memprof
ARG libs="libfreetype6 libjpeg62-turbo liblz4-tool libjudy-dev"
Expand All @@ -11,7 +11,8 @@ ARG RUNTIME_PACKAGE_DEPS="$libs $tools msmtp bc locales"

ARG BUILD_PACKAGE_DEPS="libcurl4-openssl-dev libjpeg-dev libpng-dev libxml2-dev libzip-dev"

ARG PHP_EXT_DEPS="curl json xml mbstring zip bcmath soap pdo_mysql gd mysqli"

ARG PHP_EXT_DEPS="curl json xml zip bcmath soap pdo_mysql gd mysqli"
ARG PECL_DEPS="memprof xdebug"
ARG PHP_MEMORY_LIMIT="-1"

Expand All @@ -22,7 +23,21 @@ RUN test "$PHP" != "7.0" || pecl install xdebug
RUN docker-php-ext-enable xdebug

# install dependencies and cleanup (needs to be one step, as else it will cache in the layer)
RUN apt-get update -y \
RUN test "$PHP" = "7.4" || apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yf \
$RUNTIME_PACKAGE_DEPS \
$BUILD_PACKAGE_DEPS \
&& docker-php-ext-configure gd \
&& docker-php-ext-install -j$(nproc) $PHP_EXT_DEPS \
&& pecl install $PECL_DEPS \
&& docker-php-ext-enable $PECL_DEPS \
&& docker-php-source delete \
&& apt-get clean \
&& apt-get autoremove -y \
&& apt-get purge -y --auto-remove $BUILD_PACKAGE_DEPS \
&& rm -rf /var/lib/apt/lists/*

RUN test "$PHP" != "7.4" || apt-get update -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
$RUNTIME_PACKAGE_DEPS \
$BUILD_PACKAGE_DEPS \
Expand Down