This repository was archived by the owner on Mar 30, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
54 lines (47 loc) · 1.84 KB
/
Dockerfile
File metadata and controls
54 lines (47 loc) · 1.84 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM solune/symfony:7.4-cli
RUN buildDeps=" \
" \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
$buildDeps \
graphviz \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $buildDeps \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# http://symfony.com/doc/current/performance.html
RUN echo "memory_limit = 2048M" >> /usr/local/etc/php/zzphaudit.ini \
&& echo "max_execution_time = -1" >> /usr/local/etc/php/conf.d/zzphaudit.ini
RUN mkdir -p /usr/local/composer/vendor/bin
ENV PATH /usr/local/composer/vendor/bin:$PATH
ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME /usr/local/composer
RUN cd /usr/local/composer; \
composer global init --no-interaction --name phaudit/phaudit; \
composer global require --optimize-autoloader \
bamarni/composer-bin-plugin; \
composer bin phpmetrics require --optimize-autoloader \
phpmetrics/phpmetrics; \
composer bin phpstan require --optimize-autoloader \
phpstan/phpstan \
phpstan/phpstan-doctrine \
phpstan/phpstan-phpunit \
phpstan/phpstan-strict-rules \
phpstan/phpstan-beberlei-assert \
phpstan/phpstan-webmozart-assert \
phpstan/phpstan-symfony; \
composer bin php-dependency-analysis require --optimize-autoloader \
mamuz/php-dependency-analysis; \
composer bin symfony-friendly require --optimize-autoloader \
friendsoftwig/twigcs \
friendsofphp/php-cs-fixer \
heahdude/yaml-linter \
pdepend/pdepend \
phan/phan \
phpmd/phpmd \
sensiolabs-de/deptrac-shim \
sensiolabs/security-checker; \
composer clear-cache
RUN chmod -R 777 /usr/local/composer/
WORKDIR /srv
ENTRYPOINT ["entrypoint"]
CMD ["/bin/bash"]