├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM dylanlindgren/docker-phpcli:latest 2 | 3 | MAINTAINER "Dylan Lindgren" 4 | 5 | WORKDIR /tmp 6 | 7 | RUN apt-get update -y && \ 8 | apt-get install -y curl git php5-mcrypt php5-gd && \ 9 | curl -sS https://getcomposer.org/installer | php && \ 10 | mv composer.phar /usr/local/bin/composer && \ 11 | composer self-update && \ 12 | apt-get remove --purge curl -y && \ 13 | apt-get clean 14 | 15 | RUN mkdir -p /data/www 16 | VOLUME ["/data"] 17 | WORKDIR /data/www 18 | 19 | ENTRYPOINT ["composer"] 20 | CMD ["--help"] 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Dylan Lindgren 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![Docker + Laravel](https://cloud.githubusercontent.com/assets/6241518/4891719/1cfcc9a0-63ab-11e4-8a2a-cce53e53eb19.jpg) 2 | 3 | This is a [Docker](http://www.docker.com) image for the [Composer command line interface](https://getcomposer.org), intended for use in the fashion described on my series of blog articles about using Docker and the [Laravel PHP framework](http://www.laravel.com) together: 4 | 5 | 1. [Docker for the Laravel framework](http://dylanlindgren.com/docker-for-the-laravel-framework) (24 Sep 2014) 6 | 2. [Beautiful Laravel Development with Docker & Fig](http://dylanlindgren.com/laravel-development-docker-fig) (9 Oct 2014) 7 | 8 | An automated build for this repo is available on the [Docker Hub](https://registry.hub.docker.com/u/dylanlindgren/docker-laravel-composer). 9 | 10 | This image works well with the below related images. 11 | - [dylanlindgren/docker-laravel-data](https://github.com/dylanlindgren/docker-laravel-data) 12 | - [dylanlindgren/docker-laravel-nginx](https://github.com/dylanlindgren/docker-laravel-nginx) 13 | - [dylanlindgren/docker-laravel-phpfpm](https://github.com/dylanlindgren/docker-laravel-phpfpm) 14 | - [dylanlindgren/docker-laravel-artisan](https://github.com/dylanlindgren/docker-laravel-artisan) 15 | - [dylanlindgren/docker-laravel-bower](https://github.com/dylanlindgren/docker-laravel-bower) 16 | - [dylanlindgren/docker-laravel-phpunit](https://github.com/dylanlindgren/docker-laravel-phpunit) 17 | 18 | If you have any feedback or questions, feel free to leave a comment on my blog, or you can contact me on Twitter with [@dylanlindgren](https://twitter.com/dylanlindgren) or email with dylan.lindgren@gmail.com. 19 | --------------------------------------------------------------------------------