Merge pull request #3136 from rectorphp/docker-version

Copy .git directory into docker image
This commit is contained in:
Jan Mikeš 2020-04-03 21:32:04 +02:00 committed by GitHub
commit 89aa39bc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

6
.docker/php/xdebug.ini Normal file
View File

@ -0,0 +1,6 @@
[xdebug]
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=0
xdebug.profiler_enable=0
xdebug.remote_port=9001

View File

@ -14,7 +14,6 @@ changelog-linker.yaml
LICENSE
.git/
.gitattributes
.gitignore
@ -28,4 +27,4 @@ docker-compose.dist.yml
/vendor
/docs
.travis.yml export-ignore
.travis.yml export-ignore

View File

@ -26,6 +26,10 @@ COPY .docker/php/opcache.ini /usr/local/etc/php/conf.d/opcache.ini
COPY composer.json composer.json
COPY stubs stubs
# This is to make parsing version possible
COPY .git .git
RUN composer install --no-dev --optimize-autoloader --prefer-dist
RUN mkdir /tmp/opcache