Skip to content

Commit

Permalink
fix: mcrypt
Browse files Browse the repository at this point in the history
  • Loading branch information
2898117012 committed May 2, 2020
1 parent b93c904 commit 17f2c3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
FROM php:7.2.30-apache

RUN apt-get update && apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev \
&& docker-php-ext-install -j$(nproc) iconv mcrypt && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& pecl install mcrypt-1.0.1 \
&& docker-php-ext-enable mcrypt \
&& docker-php-ext-install -j$(nproc) iconv && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd mysqli pdo_mysql \
&& cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/

0 comments on commit 17f2c3c

Please sign in to comment.