Skip to content

Commit

Permalink
run examples with fpm in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
schnipseljagd committed Jun 23, 2016
1 parent 9c2d970 commit 3aa8615
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,3 @@
FROM php:5.6-cli

RUN apt-get update && apt-get install -y \
curl \
git \
subversion \
unzip \
wget
FROM php:5.6-fpm

RUN pecl install redis-2.2.8 && docker-php-ext-enable redis

# Allow Composer to be run as root
ENV COMPOSER_ALLOW_SUPERUSER 1

RUN curl -f -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer

COPY composer.json composer.json
RUN COMPOSER_VENDOR_DIR=/root/composer/vendor/ composer install

VOLUME /prometheus_client_php

WORKDIR /prometheus_client_php

CMD [ "php", "./example.php" ]

0 comments on commit 3aa8615

Please sign in to comment.