Image containing a basic Grav installation.
69
This image is build by first downloading the Grav code base, and then adding the following Dockerfile to it
FROM php:7.1-apache
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd zip \
&& rm -rf /var/lib/apt/lists/*
COPY . /var/www/html
RUN chown -R www-data /var/www/html \
&& rm /var/www/html/Dockerfile \
&& rm -r /var/www/html/user/pages/* \
&& rm -r /var/www/html/user/themes/* \
&& a2enmod rewrite
The resulting image contains an empty Grav installation fronted by an Apache web server.
At this point, an error message will be displayed if you try to launch Grav as is. This is because we delete the default page and theme installed.
Content type
Image
Digest
Size
166.9 MB
Last updated
about 9 years ago
docker pull cocotton/grav:1.3.3