Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 1327147

Browse files
authored
improved opencensus-php dockerfile adding composer+git for easy usage (#225)
1 parent 0185ae0 commit 1327147

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
FROM php:7.3-apache
22

3+
VOLUME /var/www
4+
35
COPY config.m4 opencensus*.c opencensus*.h php_opencensus.h varint.* /tmp/opencensus/
46

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

14-
VOLUME /tmp
15-
VOLUME /var/www/html
19+
WORKDIR /var/www

0 commit comments

Comments
 (0)