Skip to content

Commit 21aec6a

Browse files
omgrrjackellenberger
authored andcommitted
add Dockerfile (braintree#12)
1 parent e44b4e3 commit 21aec6a

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FROM php:5.6.25
2+
3+
RUN apt-get update && apt-get install -y build-essential zip unzip
4+
5+
ENV APP_HOME /braintree_php_example
6+
RUN mkdir $APP_HOME
7+
WORKDIR $APP_HOME
8+
9+
ADD composer.* $APP_HOME/
10+
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php composer.phar install
11+
12+
ADD . $APP_HOME

docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '2'
2+
services:
3+
web:
4+
build: .
5+
command: php -S 0.0.0.0:4567 -t public_html
6+
ports:
7+
- "4567:4567"
8+
volumes:
9+
- .:/braintree_php_example

0 commit comments

Comments
 (0)