Update dockerfile

pull/8/head
SuperDev 3 years ago committed by GitHub
parent 7a4355ba3f
commit 83c59ea871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,11 @@
FROM php:7.4-apache
COPY . /var/www/html
RUN docker-php-ext-install pdo_mysql
RUN docker-php-ext-install zlib
RUN docker-php-ext-install gd
apt-get install -y --no-install-recommends \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
--with-png-dir=/usr/include/ --enable-gd-native-ttf \
&& docker-php-ext-install -j$(nproc) gd
CMD ["apache2ctl", "-D", "FOREGROUND"]

Loading…
Cancel
Save