Skip to content

Commit

Permalink
Merge branch '5.5-alpine' into build-on-travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dankempster committed Jan 25, 2017
2 parents 50475db + e6b1938 commit df08d25
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion Dockerfile
@@ -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/

0 comments on commit df08d25

Please sign in to comment.