Skip to content

Commit 80ca0da

Browse files
committed
Support PHP 7.4
#36
1 parent 810b627 commit 80ca0da

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

Dockerfile-74

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
#
2+
#--------------------------------------------------------------------------
3+
# Image Setup
4+
#--------------------------------------------------------------------------
5+
#
6+
7+
FROM php:7.4-fpm
8+
9+
# Set Environment Variables
10+
ENV DEBIAN_FRONTEND noninteractive
11+
12+
#
13+
#--------------------------------------------------------------------------
14+
# Software's Installation
15+
#--------------------------------------------------------------------------
16+
#
17+
# Installing tools and PHP extentions using "apt", "docker-php", "pecl",
18+
#
19+
20+
# Install "curl", "libmemcached-dev", "libpq-dev", "libjpeg-dev",
21+
# "libpng-dev", "libfreetype6-dev", "libssl-dev", "libmcrypt-dev",
22+
RUN apt-get update && \
23+
apt-get upgrade -y && \
24+
apt-get install -y --no-install-recommends \
25+
curl \
26+
libmemcached-dev \
27+
libz-dev \
28+
libpq-dev \
29+
libjpeg-dev \
30+
libpng-dev \
31+
libfreetype6-dev \
32+
libssl-dev \
33+
libmcrypt-dev \
34+
&& rm -rf /var/lib/apt/lists/*
35+
36+
37+
38+
# Install the PHP pdo_mysql extention
39+
RUN docker-php-ext-install pdo_mysql \
40+
# Install the PHP pdo_pgsql extention
41+
&& docker-php-ext-install pdo_pgsql \
42+
# Install the PHP gd library
43+
&& docker-php-ext-configure gd \
44+
--with-jpeg-dir=/usr/lib \
45+
--with-freetype-dir=/usr/include/freetype2 && \
46+
docker-php-ext-install gd

0 commit comments

Comments
 (0)