Skip to content

Commit e1f5f33

Browse files
committed
Merge branch 'master' into releases
2 parents 70a0d1c + af4a3dd commit e1f5f33

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM php:7.0-alpine
22

3-
RUN apk add --no-cache git && \
3+
RUN apk add --no-cache git tini && \
44
git clone https://github.com/nikic/php-ast.git /tmp/php-ast && \
55
apk del git && \
66
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS && \
@@ -9,9 +9,10 @@ RUN apk add --no-cache git && \
99
echo extension=ast.so > /usr/local/etc/php/conf.d/ast.ini && \
1010
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer && \
1111
composer create-project --no-dev --prefer-dist etsy/phan /opt/phan 0.6 && \
12-
rm -rf /var/cache/apk/* /tmp/php-ast /usr/local/bin/composer && \
13-
apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ tini
12+
rm -r /tmp/php-ast /usr/local/bin/composer
13+
14+
ENV PATH $PATH:/opt/phan/
1415

1516
ENTRYPOINT ["/sbin/tini", "--"]
1617

17-
CMD ["/opt/phan/phan"]
18+
CMD ["phan"]

0 commit comments

Comments
 (0)