Last active
August 11, 2019 02:08
-
-
Save shyam-habarakada/634307eb10ed1504f3cc3f3a64d4d290 to your computer and use it in GitHub Desktop.
A docker file for running statamic 2. Adds on GD and Exif dependencies on top of php:7.0-apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.0-apache | |
RUN apt-get update \ | |
&& apt-get install -y curl vim \ | |
&& a2enmod rewrite | |
# Statamic requires GD and Exif | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ | |
RUN docker-php-ext-install gd | |
RUN docker-php-ext-install exif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And the docker-compose.yml I have is copied below. The most important piece in getting this was setting the APP_ENV=dev so I can get debugging turned on properly. Without that, statamic eats the exceptions in a very unhelpful way.