Skip to content

Commit

Permalink
improved opencensus-php dockerfile adding composer+git for easy usage (
Browse files Browse the repository at this point in the history
  • Loading branch information
basvanbeek authored Feb 10, 2019
1 parent 0185ae0 commit 1327147
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions ext/docker/Dockerfile.PHP7.3-apache
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
FROM php:7.3-apache

VOLUME /var/www

COPY config.m4 opencensus*.c opencensus*.h php_opencensus.h varint.* /tmp/opencensus/

RUN cd /tmp/opencensus \
Expand All @@ -9,7 +11,9 @@ RUN cd /tmp/opencensus \
&& make install \
&& cd ~ \
&& rm -r /tmp/opencensus \
&& docker-php-ext-enable opencensus
&& docker-php-ext-enable opencensus \
&& apt-get update && apt-get install -y git unzip && apt-get clean && rm -rf /var/lib/apt/lists/* \
&& mkdir -p /var/www/html \
&& sh -c "curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer"

VOLUME /tmp
VOLUME /var/www/html
WORKDIR /var/www

0 comments on commit 1327147

Please sign in to comment.