-
-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from slayerbleast/master
Fix docker configuration, issue #119
- Loading branch information
Showing
4 changed files
with
12 additions
and
94 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,9 @@ | ||
FROM php:7.0-fpm | ||
FROM php:7.2-fpm | ||
|
||
MAINTAINER Saleh Saeed <saleh.saiid@gmail.com> | ||
MAINTAINER Marc Pont <slayerbleast@gmail.com> | ||
|
||
WORKDIR /tmp | ||
RUN apt-get update && apt-get install -y git zlib1g-dev libfreetype6-dev libjpeg62-turbo-dev libmcrypt-dev libpng-dev | ||
|
||
RUN usermod -u 1000 www-data | ||
|
||
RUN docker-php-source extract \ | ||
&& apt-get -qq update && apt-get install -y \ | ||
git zlib1g-dev \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libmcrypt-dev \ | ||
libpng-dev \ | ||
&& docker-php-ext-install pdo pdo_mysql zip \ | ||
&& docker-php-ext-install -j$(nproc) iconv mcrypt \ | ||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& docker-php-ext-install -j$(nproc) gd \ | ||
&& apt-get autoclean && apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ | ||
&& docker-php-source delete | ||
|
||
# Composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
# Xdebug | ||
RUN pecl install -o -f xdebug-2.4.0 | ||
|
||
ADD .docker/flarepoint-php/php-xdebug.ini /usr/local/etc/php/conf.d/php-xdebug.ini | ||
RUN docker-php-ext-enable xdebug | ||
|
||
COPY . /var/www/html | ||
WORKDIR /var/www/html | ||
|
||
# Set permissions | ||
RUN chmod 0777 ./bootstrap/cache -R | ||
RUN chmod 0777 ./storage/* -R | ||
|
||
# RUN cd /var/www/html && composer install -q --no-dev -o | ||
|
||
CMD ["php-fpm"] | ||
RUN docker-php-ext-install pdo pdo_mysql zip gd |
This file was deleted.
Oops, something went wrong.
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