浏览代码

Adds php-gd and mysqli to dockerfile

zachary 10 年之前
父节点
当前提交
0ef8ea269b
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      Dockerfile

+ 6 - 1
Dockerfile

@@ -1,6 +1,11 @@
 FROM php:5.6-apache
 
-RUN apt-get update && apt-get install -y php5-gd php5-mysql
+RUN apt-get update && apt-get install -y libpng12-dev libjpeg-dev \
+	&& rm -rf /var/lib/apt/lists/* \
+	&& docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \
+	&& docker-php-ext-install gd
+
+RUN docker-php-ext-install mysqli
 
 COPY htdocs/ /var/www/html/