-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
/vendor/ | ||
/composer.lock | ||
/tests/temp/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
version: '3.7' | ||
services: | ||
php: | ||
build: docker | ||
expose: | ||
- 9000 | ||
volumes: | ||
- .:/var/src/ |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
FROM php:7.3 | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get install -y \ | ||
libfreetype6-dev \ | ||
libjpeg62-turbo-dev \ | ||
libpng-dev \ | ||
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \ | ||
&& docker-php-ext-install -j$(nproc) gd | ||
|
||
RUN docker-php-ext-enable opcache | ||
|
||
RUN pecl install xdebug \ | ||
&& docker-php-ext-enable xdebug | ||
|
||
RUN apt-get install libzip-dev -y \ | ||
&& docker-php-ext-install zip | ||
|
||
RUN apt-get install unzip | ||
|
||
RUN cd ~ \ | ||
&& curl -sS https://getcomposer.org/installer -o composer-setup.php \ | ||
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer | ||
# composer cache persmission fix | ||
RUN chmod a+w /var/www | ||
|
||
COPY php.ini /usr/local/etc/php/ | ||
|
||
WORKDIR /var/src/ |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
short_open_tag=Off | ||
display_errors=On | ||
display_startup_errors=On | ||
error_reporting=E_ALL | ||
|
||
opcache.max_accelerated_files = 20000 | ||
realpath_cache_size=4096K | ||
realpath_cache_ttl=600 | ||
|
||
xdebug.remote_enable=true | ||
xdebug.remote_port=9000 | ||
xdebug.remote_connect_back=1 |
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