Copy .git directory into docker image

This commit is contained in:
Jan Mikeš 2020-04-03 21:30:47 +02:00
parent 9dea8b874e
commit 1fe9b145d0
No known key found for this signature in database
GPG Key ID: 1DEDF63B40DDA99D
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