Skip to content

Instantly share code, notes, and snippets.

@athoune
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save athoune/9a643e10c76d72c0bfa6 to your computer and use it in GitHub Desktop.
Save athoune/9a643e10c76d72c0bfa6 to your computer and use it in GitHub Desktop.
Building wp-cli
FROM debian:wheezy
RUN apt-get -y update
RUN apt-get -y upgrade
RUN apt-get -y install ca-certificates wget fakeroot
WORKDIR /tmp
ADD https://raw.githubusercontent.com/wp-cli/wp-cli/master/utils/wp-cli-updatedeb.sh /tmp/
RUN /bin/bash wp-cli-updatedeb.sh
@athoune
Copy link
Author

athoune commented Dec 31, 2014

docker build -t wpcli .
docker run --rm -v `pwd`:/data wpcli find /tmp/ -name  php-wpcli_* -exec cp {}  /data/ \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment