-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Dockerfile
33 lines (25 loc) · 1.21 KB
/
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
27
28
29
30
31
32
33
FROM php:8.3-alpine
LABEL "com.github.actions.name"="OSKAR-phpstan"
LABEL "com.github.actions.description"="phpstan"
LABEL "com.github.actions.icon"="check"
LABEL "com.github.actions.color"="blue"
LABEL "repository"="http://github.com/oskarstark/phpstan-ga"
LABEL "homepage"="http://github.com/actions"
LABEL "maintainer"="Oskar Stark <oskarstark@googlemail.com>"
COPY --from=composer:2.6.5 /usr/bin/composer /usr/local/bin/composer
RUN mkdir /composer
ENV COMPOSER_HOME=/composer
RUN echo "memory_limit=-1" > $PHP_INI_DIR/conf.d/memory-limit.ini
ENV VERSION=1.12.8
RUN composer global require phpstan/phpstan $VERSION \
&& composer global config --no-plugins allow-plugins.phpstan/extension-installer true \
&& composer global require phpstan/extension-installer \
&& composer global require phpstan/phpstan-doctrine \
&& composer global require phpstan/phpstan-phpunit \
&& composer global require phpstan/phpstan-nette \
&& composer global require phpstan/phpstan-symfony \
&& composer global require phpstan/phpstan-mockery \
&& composer global require phpstan/phpstan-webmozart-assert \
&& composer global show "*phpstan*"
ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]