Skip to content

Commit

Permalink
Add mysql client to php 5.6 & 7.1 images.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismael-benitez committed May 3, 2017
1 parent 8ce7849 commit d3d10cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions 5.6/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM jorge07/alpine-php:5.6-dev

COPY config/env/wordpress /tmp/profile

RUN cat /tmp/profile >> /etc/profile && rm -rf /tmp/profile \
RUN apk --update add mysql-client \

&& cat /tmp/profile >> /etc/profile && rm -rf /tmp/profile \
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/bin/wp \

&& curl -O https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash \
&& mv wp-completion.bash ~/wp-completion.bash
&& mv wp-completion.bash ~/wp-completion.bash \

&& rm -rf /var/cache/apk/*
8 changes: 6 additions & 2 deletions 7.1/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM jorge07/alpine-php:7.1-dev

COPY config/env/wordpress /tmp/profile

RUN cat /tmp/profile >> /etc/profile && rm -rf /tmp/profile \
RUN apk --update add mysql-client \

&& cat /tmp/profile >> /etc/profile && rm -rf /tmp/profile \
&& curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
&& chmod +x wp-cli.phar \
&& mv wp-cli.phar /usr/bin/wp \

&& curl -O https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-completion.bash \
&& mv wp-completion.bash ~/wp-completion.wp
&& mv wp-completion.bash ~/wp-completion.wp \

&& rm -rf /var/cache/apk/*

0 comments on commit d3d10cc

Please sign in to comment.