Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hexterror committed Aug 5, 2021
1 parent ca06464 commit f8f8825
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Dockerfile
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

0 comments on commit f8f8825

Please sign in to comment.