aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/docker/php/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'main/docker/php/Dockerfile')
-rwxr-xr-xmain/docker/php/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/docker/php/Dockerfile b/main/docker/php/Dockerfile
new file mode 100755
index 0000000..165cf4f
--- /dev/null
+++ b/main/docker/php/Dockerfile
@@ -0,0 +1,11 @@
+FROM php:7.0-fpm
+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 \
+ && docker-php-ext-install -j$(nproc) pdo pdo_mysql
+RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
+
+WORKDIR /app