Update Dockerfile

This commit is contained in:
magikcypress 2019-08-18 15:29:26 +02:00
parent c8b5d72dad
commit 64c9329c9b
1 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,4 @@
FROM php:7.2-apache FROM php:7.3.8-apache
LABEL maintainer="Andy Miller <rhuk@getgrav.org> (@rhukster)" LABEL maintainer="Andy Miller <rhuk@getgrav.org> (@rhukster)"
# Enable Apache Rewrite + Expires Module # Enable Apache Rewrite + Expires Module
@ -11,6 +11,8 @@ RUN apt-get update && apt-get install -y \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \
libpng-dev \ libpng-dev \
libyaml-dev \ libyaml-dev \
libzip4 \
libzip-dev \
&& docker-php-ext-install opcache \ && docker-php-ext-install opcache \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \ && docker-php-ext-install -j$(nproc) gd \
@ -33,7 +35,7 @@ RUN { \
# VOLUME /var/www/html # VOLUME /var/www/html
RUN pecl install apcu \ RUN pecl install apcu \
&& pecl install yaml \ && pecl install yaml-2.0.4 \
&& docker-php-ext-enable apcu yaml && docker-php-ext-enable apcu yaml
# Set user to www-data # Set user to www-data
@ -41,8 +43,8 @@ RUN chown www-data:www-data /var/www
USER www-data USER www-data
# Define Grav version and expected SHA1 signature # Define Grav version and expected SHA1 signature
ENV GRAV_VERSION 1.5.5 ENV GRAV_VERSION 1.6.13
ENV GRAV_SHA1 af0433facdae1afeb1d973a66db2315c5022b10d ENV GRAV_SHA1 619e2e33f50ac707aca2aac6caa6a989adaa34e4
# Install grav # Install grav
WORKDIR /var/www WORKDIR /var/www