-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 730 Bytes
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 730 Bytes
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
27
FROM php:7
MAINTAINER Matthias Endler <matthias.endler@trivago.com>
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y git curl
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
RUN git clone https://github.com/nikic/php-ast.git \
&& cd php-ast \
&& phpize \
&& ./configure \
&& make install \
&& echo 'extension=ast.so' > /usr/local/etc/php/php.ini \
&& cd .. && rm -rf php-ast
RUN git clone https://github.com/etsy/phan.git \
&& cd phan \
&& composer install \
&& ./test \
&& chmod a+x phan \
&& ln -s /phan/phan /usr/local/bin/phan
ADD run.sh run.sh
RUN chmod +x run.sh
CMD ["./run.sh"]