Skip to content

Commit e2ba131

Browse files
committed
changes for memory_limit in php.ini
1 parent f9cbf8b commit e2ba131

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ RUN apk add --no-cache \
3737
&& cd /root/drupalsecure_code_sniffs && curl https://www.drupal.org/files/issues/parenthesis_closer_notice-2320623-2.patch | git apply && cd \
3838
&& apk del --no-cache git \
3939
&& rm -rf /root/.composer/cache/* \
40-
&& ln -s /root/drupalsecure_code_sniffs/DrupalSecure /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalSecure
40+
&& ln -s /root/drupalsecure_code_sniffs/DrupalSecure /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalSecure \
41+
sed -i "s/.*memory_limit = .*/memory_limit = -1/" /etc/php7/php.ini
4142

4243
VOLUME /work
4344
WORKDIR /work

php.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
; File is not use! Please check Dockerfile.
12
; No memory limits
23
memory_limit=-1

0 commit comments

Comments
 (0)