Skip to content

Commit

Permalink
add Dockerfile (braintree#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
omgrr authored and jackellenberger committed Sep 15, 2016
1 parent e44b4e3 commit 21aec6a
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM php:5.6.25

RUN apt-get update && apt-get install -y build-essential zip unzip

ENV APP_HOME /braintree_php_example
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

ADD composer.* $APP_HOME/
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php composer.phar install

ADD . $APP_HOME
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: '2'
services:
web:
build: .
command: php -S 0.0.0.0:4567 -t public_html
ports:
- "4567:4567"
volumes:
- .:/braintree_php_example

0 comments on commit 21aec6a

Please sign in to comment.