Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.5-alpine' into build-on-travis-ci
- Loading branch information
Showing
1 changed file
with
24 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,9 +1,32 @@ | ||
FROM dankempster/composer:latest | ||
FROM dankempster/composer:5.5-alpine | ||
|
||
MAINTAINER dev@dankempster.co.uk | ||
|
||
ENV XDEBUG_VERSION 2.5.0 | ||
ENV XDEBUG_SHA1 0d31602a6ee2ba6d2e18a6db79bdb9a2a706bcd9 | ||
|
||
RUN set -x \ | ||
&& apk add --update --virtual .build-deps $PHPIZE_DEPS \ | ||
\ | ||
&& curl -o xdebug.tgz "https://xdebug.org/files/xdebug-$XDEBUG_VERSION.tgz" \ | ||
&& echo "$XDEBUG_SHA1 xdebug.tgz" | sha1sum -c - \ | ||
&& mkdir -p /usr/src/xdebug \ | ||
&& tar -xf xdebug.tgz -C /usr/src/xdebug --strip-components=1 \ | ||
&& rm xdebug.* \ | ||
&& cd /usr/src/xdebug \ | ||
\ | ||
&& phpize \ | ||
&& ./configure \ | ||
&& make -j"$(nproc)" \ | ||
&& make install \ | ||
&& make clean \ | ||
\ | ||
&& docker-php-ext-enable xdebug \ | ||
\ | ||
&& cd / \ | ||
&& rm -fr /usr/src/xdebug \ | ||
\ | ||
&& apk del .build-deps | ||
|
||
# Set PHP config | ||
COPY config/*.ini /usr/local/etc/php/conf.d/ |