Skip to content

Commit 62f3b0b

Browse files
committed
Adding support for PHP 7.4
1 parent ce4e04b commit 62f3b0b

File tree

2 files changed

+61
-2
lines changed

2 files changed

+61
-2
lines changed

.env

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
################################################
22
# SELECT PHP VERSION
3-
# Available versions php84, php83, php82
3+
# Available versions php84, php83, php82, php74
44
################################################
5-
PHP_VERSION=php84
5+
PHP_VERSION=php74
66

77
################################################
88
# SYMFONY CLI

bin/php74/Dockerfile

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# This one run on Debian 11 Bullseye
2+
FROM composer:2.8 AS composer
3+
FROM php:7.4-fpm AS base
4+
5+
ARG DEBIAN_FRONTEND=noninteractive
6+
7+
# Update
8+
RUN apt-get -y update --fix-missing \
9+
&& apt-get upgrade -y \
10+
&& apt-get --no-install-recommends install -y apt-utils
11+
12+
# Install tools & libs
13+
RUN apt-get -y update \
14+
&& apt-get -y --no-install-recommends install zip \
15+
ca-certificates \
16+
curl \
17+
nodejs \
18+
npm \
19+
gnupg \
20+
wget \
21+
libzip-dev \
22+
libicu-dev \
23+
supervisor \
24+
git \
25+
libpng-dev \
26+
libjpeg-dev \
27+
libfreetype6-dev \
28+
libwebp-dev \
29+
libmagickwand-dev
30+
31+
# Install composer
32+
COPY --from=composer /usr/bin/composer /usr/bin/composer
33+
34+
# PHP Extensions
35+
RUN docker-php-ext-install pdo_mysql opcache zip intl
36+
37+
RUN pecl install imagick && \
38+
docker-php-ext-enable imagick
39+
40+
# Install GD
41+
RUN docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg \
42+
&& docker-php-ext-install gd
43+
44+
# Symfony CLI
45+
ARG SYMFONY_CLI_VERSION
46+
RUN wget https://github.com/symfony-cli/symfony-cli/releases/download/v$SYMFONY_CLI_VERSION/symfony-cli_linux_amd64.tar.gz \
47+
&& tar -xvzf symfony-cli_linux_amd64.tar.gz \
48+
&& chmod +x symfony \
49+
&& mv symfony /usr/local/bin/
50+
51+
# Git config
52+
ARG GIT_MAIL
53+
ARG GIT_NAME
54+
RUN git config --global user.email $GIT_MAIL \
55+
&& git config --global user.name $GIT_NAME
56+
57+
# Cleanup
58+
RUN rm -rf /usr/src/* \
59+
&& rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)