update dockerfile with gd to fix test error

update create booking controller to accept rmb to myr only
This commit is contained in:
Jack Goh
2018-06-18 12:10:58 +08:00
parent 83c05e1064
commit f201f33f28
4 changed files with 63 additions and 55 deletions
+3 -2
View File
@@ -1,7 +1,8 @@
FROM php:7.1.3
RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev netcat mysql-client
RUN apt-get update -y && apt-get install -y openssl zip unzip git zlib1g-dev netcat mysql-client libgd-dev libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN docker-php-ext-install pdo pdo_mysql zip
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install pdo pdo_mysql zip gd
WORKDIR /app
COPY . /app
RUN composer install