Skip to content

Instantly share code, notes, and snippets.

@clarkf
Created October 8, 2013 04:45
Show Gist options
  • Select an option

  • Save clarkf/6879574 to your computer and use it in GitHub Desktop.

Select an option

Save clarkf/6879574 to your computer and use it in GitHub Desktop.
A dockerfile for
FROM ubuntu:precise
# Install all the things! (TODO: Add your favorite text editor here)
RUN apt-get update
RUN apt-get -y -q install php5-cli sudo php5-curl curl git
# Create a user so that everything isn't run as root
RUN adduser user; adduser user sudo; passwd -d user
# Install composer, and move it to `composer` so it can be used globally
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/
RUN mv /usr/local/bin/composer.phar /usr/local/bin/composer
# Now, `git clone` your favorite php repo and start forking!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment