forked from snowplow/snowplow-php-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM php:7.2
RUN pecl install xdebug-2.7.2 \
&& docker-php-ext-enable xdebug
RUN apt-get update \
&& apt-get install -y git wget tar
WORKDIR /usr/bin
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php -r "if (hash_file('sha384', 'composer-setup.php') === '756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');"
WORKDIR /tmp
RUN wget https://s3.amazonaws.com/mountebank/v2.4/mountebank-v2.4.0-linux-x64.tar.gz \
&& tar -xf mountebank-v2.4.0-linux-x64.tar.gz \
&& cp -r mountebank-v2.4.0-linux-x64/* /usr/bin/ \
&& rm -rf mountebank-v2.4.0-linux-x64*
RUN mkdir /src
COPY . /src
WORKDIR /src
RUN composer.phar install