-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hexterror
committed
Aug 5, 2021
1 parent
ca06464
commit f8f8825
Showing
1 changed file
with
7 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
FROM php:7.3.28-apache | ||
|
||
# Add Maintainer Info | ||
LABEL maintainer="Injamul Mohammad Mollah <mrinjamul@gmail.com>" | ||
|
||
# Install required packages for php modules | ||
RUN apt-get update -y && apt-get install -y \ | ||
libwebp-dev \ | ||
libjpeg62-turbo-dev \ | ||
libxpm-dev \ | ||
libfreetype6-dev \ | ||
libpng-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN docker-php-ext-install pdo pdo_mysql | ||
|
||
RUN docker-php-ext-install mbstring fileinfo gettext exif | ||
|
||
# Install php modules | ||
RUN docker-php-ext-configure gd --with-gd --with-webp-dir --with-jpeg-dir \ | ||
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir | ||
|
||
RUN docker-php-ext-install gd | ||
--with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir | ||
|
||
RUN docker-php-ext-install pdo pdo_mysql mbstring fileinfo gettext exif gd | ||
# reload apache server | ||
RUN a2enmod rewrite | ||
|