Skip to content

Commit 91e63ef

Browse files
committed
Add curl, git and pho_mysql for php-stan
1 parent eb51fe8 commit 91e63ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM alpine:3.6
1+
FROM alpine:3.8
22

33
ARG BUILD_DATE
44
ARG VCS_REF
@@ -18,18 +18,20 @@ RUN set -e \
1818
patch \
1919
php7 \
2020
php7-apcu \
21+
php7-curl \
2122
php7-ctype \
2223
php7-json \
2324
php7-mbstring \
2425
php7-opcache \
2526
php7-openssl \
27+
php7-pdo_mysql \
2628
php7-phar \
2729
php7-simplexml \
2830
php7-tokenizer \
2931
php7-xmlwriter \
3032
php7-zlib \
3133
&& curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/bin \
32-
&& composer global require drupal/coder --update-no-dev --no-suggest --prefer-dist ^8.2 \
34+
&& composer global require drupal/coder --update-no-dev --no-suggest --prefer-dist ~8.2.10 \
3335
&& ln -s /root/.composer/vendor/bin/phpcs /usr/bin/phpcs \
3436
&& ln -s /root/.composer/vendor/bin/phpcbf /usr/bin/phpcbf \
3537
&& ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/Drupal /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Drupal \
@@ -38,7 +40,6 @@ RUN set -e \
3840
&& git clone --branch master https://git.drupal.org/sandbox/coltrane/1921926.git /root/drupalsecure_code_sniffs \
3941
&& rm -rf /root/drupalsecure_code_sniffs/.git \
4042
&& cd /root/drupalsecure_code_sniffs && curl https://www.drupal.org/files/issues/parenthesis_closer_notice-2320623-2.patch | git apply && cd \
41-
&& apk del --no-cache git \
4243
&& rm -rf /root/.composer/cache/* \
4344
&& ln -s /root/drupalsecure_code_sniffs/DrupalSecure /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalSecure \
4445
&& sed -i "s/.*memory_limit = .*/memory_limit = -1/" /etc/php7/php.ini

0 commit comments

Comments
 (0)