Skip to content
This repository was archived by the owner on Nov 26, 2025. It is now read-only.

Commit 04fa312

Browse files
committed
Merge remote-tracking branch 'origin/master' into releases
2 parents 175e7cb + dd7b1e2 commit 04fa312

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Dockerfile

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

3-
RUN apk --update add zlib-dev git && \
4-
docker-php-ext-install zip mbstring && \
3+
RUN apk add --no-cache git && \
54
git clone https://github.com/nikic/php-ast.git /tmp/php-ast && \
5+
apk del git && \
6+
apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS && \
67
cd /tmp/php-ast && phpize && ./configure && make install && \
8+
apk del .phpize-deps && \
79
echo extension=ast.so > /usr/local/etc/php/conf.d/ast.ini && \
810
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer && \
911
composer create-project --no-dev --prefer-dist etsy/phan /opt/phan 0.4 && \
10-
curl -fSL "https://github.com/krallin/tini/releases/download/v0.9.0/tini-static" -o /usr/local/bin/tini && \
11-
chmod +x /usr/local/bin/tini && \
12-
apk del zlib-dev git && \
13-
rm -rf /var/cache/apk/* /tmp/php-ast /usr/local/bin/composer
14-
15-
ENTRYPOINT ["tini", "/opt/phan/phan", "--"]
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
14+
RUN echo $PHPIZE_DEPS
15+
ENTRYPOINT ["/sbin/tini", "--", "/opt/phan/phan"]

0 commit comments

Comments
 (0)