Update Dockerfile (#15)
Co-authored-by: Andy Miller <1084697+rhukster@users.noreply.github.com>
This commit is contained in:
parent
fb824bc18b
commit
c8c88ac820
20
Dockerfile
20
Dockerfile
|
|
@ -6,14 +6,15 @@ RUN a2enmod rewrite expires
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
unzip \
|
unzip \
|
||||||
libfreetype6-dev \
|
libfreetype6-dev \
|
||||||
libjpeg62-turbo-dev \
|
libjpeg62-turbo-dev \
|
||||||
libpng-dev \
|
libpng-dev \
|
||||||
libyaml-dev \
|
libyaml-dev \
|
||||||
libzip-dev \
|
libzip4 \
|
||||||
cron \
|
libzip-dev \
|
||||||
vim \
|
cron \
|
||||||
|
vim \
|
||||||
&& 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 \
|
||||||
|
|
@ -34,7 +35,7 @@ RUN { \
|
||||||
} > /usr/local/etc/php/conf.d/php-recommended.ini
|
} > /usr/local/etc/php/conf.d/php-recommended.ini
|
||||||
|
|
||||||
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
|
||||||
|
|
@ -45,7 +46,6 @@ USER www-data
|
||||||
ENV GRAV_VERSION 1.6.19
|
ENV GRAV_VERSION 1.6.19
|
||||||
ENV GRAV_SHA1 231e6789e9575adccd6044aa0d0c72b8c2603a96
|
ENV GRAV_SHA1 231e6789e9575adccd6044aa0d0c72b8c2603a96
|
||||||
|
|
||||||
|
|
||||||
# Install grav
|
# Install grav
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
RUN curl -o grav-admin.zip -SL https://getgrav.org/download/core/grav-admin/${GRAV_VERSION} && \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue