Skip to content

Commit

Permalink
Replace custom installation of php yaml and xdebug
Browse files Browse the repository at this point in the history
With Alpine packages...
  • Loading branch information
lazyfrosch committed Dec 5, 2019
1 parent 404839f commit 024f426
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM alpine

RUN apk update \
&& apk add \
&& apk add \
php7-fpm \
ca-certificates \
curl \
Expand Down Expand Up @@ -32,21 +32,18 @@ RUN apk update \
php7-simplexml \
php7-tokenizer \
php7-xml \
php7-pecl-yaml \
php7-pecl-xdebug \
yaml \
&& apk add build-base php7-dev yaml-dev \
&& pecl channel-update pecl.php.net \
&& sed -i 's|$PHP -C -n -q |$PHP -C -q |' /usr/bin/pecl \
&& (yes '' | pecl install yaml) \
&& (yes '' | pecl install xdebug) \
&& apk del build-base php7-dev yaml-dev \
&& mv /etc/php7/conf.d/xdebug.ini /etc/php7/conf.d/xdebug.ini.orig \
&& php -m \
&& rm -rf /var/cache/apk/*

#RUN (echo "en_US.UTF-8 UTF-8"; echo "de_DE.UTF-8 UTF-8"; echo "fr_FR.UTF-8 UTF-8") >> /etc/locale.gen \
# && DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales

RUN cd /etc/php7 \
&& echo 'date.timezone = UTC' > conf.d/timezone.ini \
&& echo 'extension=yaml.so' > conf.d/yaml.ini \
&& { \
echo 'zend_extension=/usr/lib/php7/modules/xdebug.so'; \
echo; \
Expand Down

0 comments on commit 024f426

Please sign in to comment.